boolean (@NotNull PsiMethodCallExpression callExpression, @NotNull ProblemsHolder holder) { final PsiReferenceExpression methodExpression = callExpression.getMethodExpression(); final String methodName = methodExpression.getReferenceName(); if (methodName != null && KNOWN_METHOD_NAMES.contains(methodName)) { final PsiMethod method = callExpression.resolveMethod(); if (method != null && isClassWithName(method.getContainingClass(), JAVA_LANG_INVOKE_METHOD_HANDLES_LOOKUP)) { final PsiExpression[] arguments = callExpression.getArgumentList().getExpressions(); checkHandleFactory(methodName, methodExpression, arguments, holder); } return true; } if (isCallToMethod(callExpression, JAVA_LANG_INVOKE_METHOD_HANDLES, ARRAY_ELEMENT_VAR_HANDLE)) { checkArrayElementVarHandle(callExpression, holder); return true; } return false; }