code: public static <R> Function<Object,R> methodFor(final Type<R> resultType, final String methodName, final Object... optionalParameters) {
          return new Call<Object,R>(resultType, methodName, VarArgsUtil.asOptionalObjectArray(Object.class,optionalParameters));
      }
docs: <p>
  Executes a method on the target object which returns an object of the <tt>resultType</tt>.
  Parameters must match those of the method.
  </p>
  
  @param resultType the type of the result
  @param methodName the name of the method
  @param optionalParameters the (optional) parameters of the method.
  @return the result of the method execution