void (@NotNull PsiJavaCodeReferenceElement reference) { super.visitReferenceElement(reference); if (reference.getQualifier() != null) { return; } final PsiElement target = reference.resolve(); if (!(target instanceof PsiClass) || !PsiUtil.isLocalClass((PsiClass)target)) { return; } referenceToLocalClass = true; }