public static @NotNull <T extends GitReference> List<T> sortBranchesByName(@NotNull Collection<? extends T> branches) {
    return branches.stream()
      .sorted(Comparator.comparing(GitReference::getFullName, NaturalComparator.INSTANCE))
      .collect(Collectors.toList());
  }
public static @NotNull <T extends GitReference> List<T> sortBranchesByName(@NotNull Collection<? extends T> branches)