void (@NotNull PsiJavaCodeReferenceElement reference) { if (reference.getQualifier() == null) { String name = reference.getReferenceName(); Import unresolvedImport = unresolvedNames.get(name); if (reference.multiResolve(false).length == 0) { hasResolveProblem[0] = true; if (unresolvedImport != null) { namesToImport.add(unresolvedImport); unresolvedNames.remove(name); if (unresolvedNames.isEmpty()) return; } } } super.visitReferenceElement(reference); }