void (@NotNull PsiJavaCodeReferenceElement reference) { super.visitReferenceElement(reference); if (isFullyQualifiedReference(reference)) { return; } PsiElement parent = reference.getParent(); if (parent instanceof PsiImportStatementBase) { return; } while (parent instanceof PsiJavaCodeReferenceElement) { parent = parent.getParent(); if (parent instanceof PsiImportStatementBase) { return; } } checkStaticImportReference(reference); }