String[] (final Collection<PaletteGroup> groups) { Set<String> result = new TreeSet<>(); for (PaletteGroup group : groups) { result.add(group.getTabName()); } return ArrayUtilRt.toStringArray(result); }