RangeHighlighterEx (@NotNull RangeHighlighterImpl highlighter, @Nullable Consumer<? super RangeHighlighterEx> changeAttributesAction) { myCachedHighlighters = null; if (changeAttributesAction != null) { highlighter.changeAttributesNoEvents(changeAttributesAction); } fireAfterAdded(highlighter); return highlighter; }