private static boolean less(RangeHighlighter h1, RangeHighlighter h2) {
    return h1 != null && (h2 == null || h1.getStartOffset() < h2.getStartOffset());
  }
private static boolean less(RangeHighlighter h1, RangeHighlighter h2)