void (@NotNull PsiMethodReferenceExpression expression) { if (!MATCHER.methodReferenceMatches(expression)) return; final PsiExpression qualifier = expression.getQualifierExpression(); if (NonNlsUtils.isNonNlsAnnotatedUse(qualifier) || NonNlsUtils.isNonNlsAnnotated(qualifier)) return; PsiElement nameElement = Objects.requireNonNull(expression.getReferenceNameElement()); registerError(nameElement, expression); }