void (@NotNull PsiElement element) { for (PsiReference reference : element.getReferences()) { if (reference.resolve() == null) { for (ReferenceImporter importer : referenceImporters) { BooleanSupplier action = importer.computeAutoImportAtOffset(editor, file, element.getTextRange().getStartOffset(), true); if (action != null) { result.add(action); } } } } super.visitElement(element); }