List<OrderRootType> (@NotNull Collection<? extends OrderRootType> rootTypes) { List<OrderRootType> allTypes = new ArrayList<>(rootTypes); allTypes.sort((o1, o2) -> o1.name().compareToIgnoreCase(o2.name())); return allTypes; }