boolean (PsiMethodCallExpression call, PsiClass target) { String name = call.getMethodExpression().getReferenceName(); final JavaResolveResult resolveResult = call.getMethodExpression().advancedResolve(false); PsiExpressionList list = call.getArgumentList(); PsiMethod[] methods = target.findMethodsByName(name, false); for (PsiMethod method : methods) { if (PsiUtil.isApplicable(method, resolveResult.getSubstitutor(), list)) return true; } return false; }