private static boolean doRemoveHighlighter(@NotNull Set<RangeHighlighter> highlighters,
                                             @NotNull RangeHighlighter highlighter,
                                             @NotNull MarkupModelEx markupModel) {
    boolean wasRemoved = highlighters.remove(highlighter);
    if (wasRemoved) {
      setHideFlags(highlighter, null);

      if (markupModel.containsHighlighter(highlighter)) {
        highlighter.dispose();
      }
    }
    return wasRemoved;
  }
private static boolean doRemoveHighlighter(@NotNull Set<RangeHighlighter> highlighters,
                                             @NotNull RangeHighlighter highlighter,
                                             @NotNull MarkupModelEx markupModel)