private static Collection<String> toNames(Collection<PsiClass> classes) {
    return classes.stream()
      .map(PsiClass::getQualifiedName)
      .filter(Objects::nonNull)
      .sorted()
      .toList();
  }
private static Collection<String> toNames(Collection<PsiClass> classes)