void (@NotNull CompletionParameters parameters, @NotNull final CompletionResultSet resultSet) { if (parameters.getOriginalFile().getUserData(ClassNameReferenceEditor.CLASS_NAME_REFERENCE_FRAGMENT) == null) { return; } resultSet.runRemainingContributors(parameters, result -> { LookupElement element = result.getLookupElement(); Object object = element.getObject(); if (object instanceof PsiClass) { Module module = ModuleUtilCore.findModuleForPsiElement((PsiClass)object); if (module != null) { resultSet.consume(LookupElementDecorator.withRenderer(element, new AppendModuleName(module))); return; } } resultSet.passResult(result); }); }