public static @NotNull List<GitLocalBranch> getCommonLocalBranches(@NotNull Collection<? extends GitRepository> repositories) {
    return collectCommon(repositories.stream().map(repository -> repository.getBranches().getLocalBranches()));
  }
public static @NotNull List<GitLocalBranch> getCommonLocalBranches(@NotNull Collection<? extends GitRepository> repositories)