boolean (PsiJavaCodeReferenceElement classReference, UsageTarget @NotNull [] targets) { if (classReference instanceof PsiMethodReferenceExpression) return false; final PsiElement qualifier = classReference.getQualifier(); if (qualifier instanceof PsiJavaCodeReferenceElement) { return qualifiesToTargetClasses((PsiJavaCodeReferenceElement)qualifier, targets) && classReference.resolve() instanceof PsiClass; } return false; }