public boolean hideHighlights(@NotNull Editor editor, @HideFlags int mask) {
    Set<RangeHighlighter> highlighters = getEditorHighlighters(editor, false);
    if (highlighters == null) return false;

    List<RangeHighlighter> highlightersToRemove = new ArrayList<>();
    for (RangeHighlighter highlighter : highlighters) {
      Integer flags = getHideFlags(highlighter);
      if (flags != null && (flags & mask) != 0) {
        highlightersToRemove.add(highlighter);
      }
    }

    MarkupModelEx markupModel = (MarkupModelEx)editor.getMarkupModel();
    for (RangeHighlighter highlighter : highlightersToRemove) {
      doRemoveHighlighter(highlighters, highlighter, markupModel);
    }

    return !highlightersToRemove.isEmpty();
  }
public boolean hideHighlights(@NotNull Editor editor, @HideFlags int mask)