instance Method
fun instanceMethod(receiverClass: Class<*>, methodName: String, returnClass: Class<*>, vararg argumentTypes: Class<*>): CheckedMethod
Create a CheckedMethod for invoking an instance method that has been annotated with ReferencedInGeneratedCode, failing if there is a problem.
Return
The CheckedMethod.
Parameters
receiver Class
The type of the receiver of the method.
method Name
The name of the method.
return Class
The required return type.
argument Types
A vararg array of argument types.