List<String> (@NotNull List<? extends PsiCaseLabelElement> elements, @NotNull Set<? extends PsiClass> missingClasses) { List<String> result = new ArrayList<>(ContainerUtil.map(elements, PsiElement::getText)); for (PsiClass aClass : missingClasses) { result.add(aClass.getQualifiedName()); } return StreamEx.of(result).distinct().toList(); }