private @NotNull Pair<List<Pair<String, Icon>>, Integer> calculatePresentation(@NotNull List<? extends RefGroup> refGroups,
                                                                                 @NotNull List<VcsBookmarkRef> bookmarks,
                                                                                 @NotNull FontMetrics fontMetrics,
                                                                                 @NotNull Color background,
                                                                                 int availableWidth,
                                                                                 boolean compact) {
    if (compact) return calculateCompactPresentation(refGroups, bookmarks, fontMetrics, background, availableWidth);
    return calculateLongPresentation(refGroups, bookmarks, fontMetrics, background, availableWidth);
  }
private @NotNull Pair<List<Pair<String, Icon>>, Integer> calculatePresentation(@NotNull List<? extends RefGroup> refGroups,
                                                                                 @NotNull List<VcsBookmarkRef> bookmarks,
                                                                                 @NotNull FontMetrics fontMetrics,
                                                                                 @NotNull Color background,
                                                                                 int availableWidth,
                                                                                 boolean compact)