public static @NotNull Collection<String> convertBranchesToNames(@NotNull Collection<? extends GitBranch> branches) {
    return ContainerUtil.map(branches, GitBranch::getName);
  }
public static @NotNull Collection<String> convertBranchesToNames(@NotNull Collection<? extends GitBranch> branches)