boolean (@NotNull PsiMethodCallExpression expression, @NonNls @Nullable String calledOnClassName, @Nullable PsiType returnType, @NonNls @Nullable String methodName, @NonNls String @Nullable ... parameterTypeStrings) { if (parameterTypeStrings == null) { return isCallToMethod(expression, calledOnClassName, returnType, methodName, (PsiType[])null); } if (!checkMethodName(expression, methodName)) return false; final JavaPsiFacade psiFacade = JavaPsiFacade.getInstance(expression.getProject()); final PsiElementFactory factory = psiFacade.getElementFactory(); final PsiType[] parameterTypes = PsiType.createArray(parameterTypeStrings.length); final GlobalSearchScope scope = expression.getResolveScope(); for (int i = 0; i < parameterTypeStrings.length; i++) { final String parameterTypeString = parameterTypeStrings[i]; parameterTypes[i] = factory.createTypeByFQClassName(parameterTypeString, scope); } return isCallToMethod(expression, calledOnClassName, returnType, methodName, parameterTypes); }