private static @NotNull List<HighlightSeverity> getSortedSeverities(@NotNull Object2IntMap<HighlightSeverity> map) {
    List<HighlightSeverity> list = new ArrayList<>(map.keySet());
    list.sort((o1, o2) -> compare(o1, o2, map));
    return list;
  }
private static @NotNull List<HighlightSeverity> getSortedSeverities(@NotNull Object2IntMap<HighlightSeverity> map)