void (@NotNull ResolveState state, @NotNull PsiClass psiClass) { final Collection<PsiClass> sealedInheritors = SealedUtils.findSameFileInheritorsClasses(psiClass); for (PsiClass inheritor : sealedInheritors) { final CompletionElement completion = new CompletionElement(inheritor, state.get(PsiSubstitutor.KEY)); final CompletionElement prev = myResults.get(completion); if (prev == null || completion.isMoreSpecificThan(prev)) { myResults.put(completion, completion); } } }