void (@NotNull Editor editor, int startOffset, int endOffset, @Nullable TextAttributes attributes, @Nullable TextAttributesKey attributesKey, boolean hideByTextChange, boolean hideByAnyKey, @Nullable Collection<? super RangeHighlighter> highlighters) { int flags = HIDE_BY_ESCAPE; if (hideByTextChange) { flags |= HIDE_BY_TEXT_CHANGE; } if (hideByAnyKey) { flags |= HIDE_BY_ANY_KEY; } Color scrollMarkColor = getScrollMarkColor(attributes, editor.getColorsScheme()); addOccurrenceHighlight(editor, startOffset, endOffset, attributes, attributesKey, flags, highlighters, scrollMarkColor); }