private static @NotNull HgBranchType getBranchType(@NotNull VcsRef reference) {
    return reference.getType().equals(BOOKMARK) ? HgBranchType.BOOKMARK : HgBranchType.BRANCH;
  }
private static @NotNull HgBranchType getBranchType(@NotNull VcsRef reference)