public static <R> Function<Object,List<R>> methodForListOf(final Type<R> resultType, final String methodName, final Object... optionalParameters) {
        return new Call<Object,List<R>>(Types.listOf(resultType), methodName, VarArgsUtil.asOptionalObjectArray(Object.class,optionalParameters));
    }
public static < R > Function < Object , List < R > > methodForListOf ( final Type < R > resultType , final String methodName , final Object ... optionalParameters ) { return new Call < Object , List < R > > ( Types . listOf ( resultType ) , methodName , VarArgsUtil . asOptionalObjectArray ( Object . class , optionalParameters ) ) ; }
<p>
Executes a method on the target object which returns List&lt;R&gt;, being <tt>R</tt> the
specified type parameter. Parameters must match those of the method.
</p>

@param resultType the type of the method's result
@param methodName the name of the method
@param optionalParameters the (optional) parameters of the method.
@return the result of the method execution