void (@NotNull PsiJavaCodeReferenceElement reference) { super.visitReferenceElement(reference); if (reference.getQualifier() != null) return; JavaResolveResult resolveResult = reference.advancedResolve(false); if (resolveResult.getElement() instanceof PsiClass psiClass && conflicts.contains(psiClass.getName())) { if (resolveResult.getCurrentFileResolveScope() instanceof PsiImportStatementBase || isImplicitlyImported(psiClass.getQualifiedName(), file)) { String fqn = psiClass.getQualifiedName(); if (fqn != null && !PsiTreeUtil.isAncestor(file, psiClass, true) && !packageName.equals(StringUtil.getPackageName(fqn))) { result.add(fqn); } } } }