solveMethodAsUsage
open fun solveMethodAsUsage(name: String, parameterTypes: List<ResolvedType>, invokationContext: Context, typeParameterValues: List<ResolvedType>, callContext: ResolvedReferenceTypeDeclaration): Optional<MethodUsage>(source)
Solves method usage with proper generic type inference, including support for varargs methods. This method first resolves the basic method signature, then performs generic type inference based on the actual parameter types provided at the call site.
Return
an Optional containing the resolved MethodUsage with inferred types, or empty if resolution fails
Parameters
name
the method name to resolve
parameterTypes
the actual parameter types at the call site
invokationContext
the context where the method is invoked
typeParameterValues
explicit type parameter values (if any)
callContext