code: public static List<? extends Expression> getMethodArguments(ASTNode methodCall) {
          if (methodCall instanceof ConstructorCallExpression) {
              return extractExpressions(((ConstructorCallExpression) methodCall).getArguments());
          } else if (methodCall instanceof MethodCallExpression) {
              return extractExpressions(((MethodCallExpression) methodCall).getArguments());
          } else if (methodCall instanceof StaticMethodCallExpression) {
              return extractExpressions(((StaticMethodCallExpression) methodCall).getArguments());
          } else if (respondsTo(methodCall, "getArguments")) {
              throw new RuntimeException(); // TODO: remove, should never happen
          }
          return new ArrayList<Expression>();
      }
docs: Return the List of Arguments for the specified MethodCallExpression or a ConstructorCallExpression.
  The returned List contains either ConstantExpression or MapEntryExpression objects.
  @param methodCall - the AST MethodCallExpression or ConstructorCalLExpression
  @return the List of argument objects