code: public static Name calledMethodName(JCTree tree) {
          if (tree.hasTag(EXEC)) {
              JCExpressionStatement exec = (JCExpressionStatement)tree;
              if (exec.expr.hasTag(APPLY)) {
                  Name mname = TreeInfo.name(((JCMethodInvocation) exec.expr).meth);
                  return mname;
              }
          }
          return null;
      }
docs: If the expression is a method call, return the method name, null
  otherwise.