code: public static boolean isMethodCall(Statement stmt, String methodObject, String methodName, int numArguments) {
          if (stmt instanceof ExpressionStatement) {
              Expression expression = ((ExpressionStatement) stmt).getExpression();
              if (expression instanceof MethodCallExpression) {
                  return isMethodCall(expression, methodObject, methodName, numArguments);
              }
          }
          return false;
      }
docs: Return true only if the Statement represents a method call for the specified method object (receiver),
  method name, and with the specified number of arguments.
  @param stmt - the AST Statement
  @param methodObject - the name of the method object (receiver)
  @param methodName - the name of the method being called
  @param numArguments - the number of arguments passed into the method
  @return true only if the Statement is a method call matching the specified criteria