code: public MethodInfo addMethod(Modifiers modifiers,
                                  String methodName,
                                  TypeDesc ret,
                                  TypeDesc[] params) {
          MethodDesc md = MethodDesc.forArguments(ret, params);
          return addMethod(modifiers, methodName, md);
      }
docs: Add a method to this class.
  
  @param ret Is null if method returns void.
  @param params May be null if method accepts no parameters.