boolean hasHighlightersToHide(@NotNull Editor editor, @SuppressWarnings("SameParameterValue") @HideFlags int mask) {
    Set<RangeHighlighter> highlighters = getEditorHighlighters(editor, false);
    if (highlighters != null) {
      for (RangeHighlighter highlighter : highlighters) {
        Integer flags = getHideFlags(highlighter);
        if (flags != null && (flags & mask) != 0) {
          return true;
        }
      }
    }
    return false;
  }
boolean hasHighlightersToHide(@NotNull Editor editor, @SuppressWarnings("SameParameterValue") @HideFlags int mask)