isApplicable
open fun isApplicable(method: ResolvedMethodDeclaration, name: String, argumentsTypes: List<ResolvedType>, typeSolver: TypeSolver): Boolean(source)
open fun isApplicable(methodUsage: MethodUsage, needleName: String, needleParameterTypes: List<ResolvedType>, typeSolver: TypeSolver): Boolean(source)
Checks if a method usage is applicable for a given method name and parameter types. This method performs type compatibility checking including generic type variable substitution. Note the specific naming here -- parameters are part of the method declaration, while arguments are the values passed when calling a method. Note that "needle" refers to that value being used as a search/query term to match against.
Return
true, if the given MethodUsage matches the given name/types (normally obtained from a ResolvedMethodDeclaration)