public @NotNull Map<T, Set<String>> getFavoriteBranches(@NotNull BranchType branchType) {
    Map<T, List<String>> favorites = collectBranchesByRoot(myBranchSettings.getFavorites(), branchType);
    Map<T, List<String>> excludedFavorites = collectBranchesByRoot(myBranchSettings.getExcludedFavorites(), branchType);
    Collection<String> predefinedFavorites = myPredefinedFavoriteBranches.get(branchType);

    Map<T, Set<String>> result = new HashMap<>();
    for (T repo : myRepositoryManager.getRepositories()) {
      HashSet<String> branches = new HashSet<>();

      if (predefinedFavorites != null) {
        branches.addAll(predefinedFavorites);
      }

      List<String> repoExcludedFavorites = ContainerUtil.notNullize(excludedFavorites.get(repo));
      for (String repoExcludedFavorite : repoExcludedFavorites) {
        branches.remove(repoExcludedFavorite);
      }

      List<String> repoFavorites = ContainerUtil.notNullize(favorites.get(repo));
      branches.addAll(repoFavorites);

      result.put(repo, branches);
    }
    return result;
  }
public @NotNull Map<T, Set<String>> getFavoriteBranches(@NotNull BranchType branchType)