void (MarkupModelEx markupModel, List<String> events) { RangeHighlighter highlighter = markupModel.addRangeHighlighter(1, 2, 0, null, HighlighterTargetArea.EXACT_RANGE); List<String> expected = new ArrayList<>(); assertEventsFired(expected, events, "(1,2): AA"); highlighter.setCustomRenderer((editor, highlighter1, g) -> {}); assertEventsFired(expected, events, "(1,2): AC"); highlighter.setEditorFilter(__ -> true); assertEventsFired(expected, events, "(1,2): AC"); highlighter.setErrorStripeMarkColor(new Color(1)); assertEventsFired(expected, events, "(1,2): AC"); highlighter.setErrorStripeTooltip(this); assertEventsFired(expected, events, "(1,2): AC"); highlighter.setGutterIconRenderer(MarkupModelStressTest.DUMMY_GUTTER_ICON_RENDERER); assertEventsFired(expected, events, "(1,2): AC"); highlighter.setLineMarkerRenderer((editor, g, r) -> {}); assertEventsFired(expected, events, "(1,2): AC"); highlighter.setLineSeparatorColor(new Color(1)); assertEventsFired(expected, events, "(1,2): AC"); highlighter.setLineSeparatorPlacement(SeparatorPlacement.BOTTOM); assertEventsFired(expected, events, "(1,2): AC"); highlighter.setLineSeparatorRenderer((g, x1, x2, y) -> {}); assertEventsFired(expected, events, "(1,2): AC"); highlighter.setTextAttributesKey(CodeInsightColors.LINE_NONE_COVERAGE); assertEventsFired(expected, events, "(1,2): AC"); highlighter.setThinErrorStripeMark(true); assertEventsFired(expected, events, "(1,2): AC"); highlighter.dispose(); assertEventsFired(expected, events,"(1,2): BR", "(1,2): AR"); }