List<PsiType> (@NotNull List<PsiType> selectorTypes) { return selectorTypes.stream() .filter(type -> { PsiClass psiClass = PsiUtil.resolveClassInClassTypeOnly(TypeConversionUtil.erasure(type)); return psiClass != null && (isAbstractSealed(psiClass)); }) .toList(); }