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