public static int getNumOfFavorites(@NotNull List<? extends BranchActionGroup> branchActions) {
    return ContainerUtil.count(branchActions, BranchActionGroup::isFavorite);
  }
public static int getNumOfFavorites(@NotNull List<? extends BranchActionGroup> branchActions)