boolean ( @Nullable PsiExpression expression) { if (isReferenceToNonNlsAnnotatedElement(expression)) { return true; } if (expression instanceof PsiMethodCallExpression methodCallExpression) { final PsiMethod method = methodCallExpression.resolveMethod(); if (isNonNlsAnnotatedModifierListOwner(method)) { return true; } final PsiReferenceExpression methodExpression = methodCallExpression.getMethodExpression(); final PsiExpression qualifier = methodExpression.getQualifierExpression(); return isNonNlsAnnotated(qualifier); } else if (expression instanceof PsiArrayAccessExpression arrayAccessExpression) { final PsiExpression arrayExpression = arrayAccessExpression.getArrayExpression(); return isNonNlsAnnotated(arrayExpression); } return false; }