@NotNull
  private static List<TemplateGroup> getSortedGroups(TemplateSettings templateSettings) {
    List<TemplateGroup> groups = new ArrayList<>(templateSettings.getTemplateGroups());

    groups.sort((o1, o2) -> o1.getName().compareToIgnoreCase(o2.getName()));
    return groups;
  }
@NotNull
  private static List<TemplateGroup> getSortedGroups(TemplateSettings templateSettings)