boolean (@NotNull PsiMethodCallExpression expression, @NonNls @Nullable String calledOnClassName, @Nullable PsiType returnType, @NonNls @Nullable String methodName, PsiType @Nullable ... parameterTypes) { if (!checkMethodName(expression, methodName)) return false; final PsiMethod method = expression.resolveMethod(); if (method == null) { return false; } return MethodUtils.methodMatches(method, calledOnClassName, returnType, methodName, parameterTypes); }