bool IsNotTargetOfMethodInvocation(Expression node) { MethodInvocationExpression mie = node.ParentNode as MethodInvocationExpression; if (null != mie) return mie.Target != node; return true; }