private void methodObject(@NlsSafe String name, @NlsSafe String returnType, @Nullable String navigationClass,
                              @Nullable Map<@NlsSafe String, NamedArgumentDescriptor> namedArg) {
      MyMethodBuilder method = method(name, returnType, navigationClass);
      method.addParameter("map", type(CommonClassNames.JAVA_UTIL_MAP), true);
      method.addParameter("params", MANY_OBJECTS);
      if (namedArg != null) {
        method.setNamedParameters(namedArg);
      }
      add(method);
    }
private void methodObject(@NlsSafe String name, @NlsSafe String returnType, @Nullable String navigationClass,
                              @Nullable Map<@NlsSafe String, NamedArgumentDescriptor> namedArg)