private static bool IsNonLocal(IActorRef @ref) { if (@ref == null) return true; var a = @ref as IInternalActorRef; return a != null && !a.IsLocal; }