void (@NotNull RangeHighlighterEx highlighter1) { fired.incrementAndGet(); assertSame(highlighter, highlighter1); assertTrue(highlighter2.isValid()); assertThrows(IncorrectOperationException.class, ()->markupModel.addRangeHighlighter(1, 3, 1, null, HighlighterTargetArea.EXACT_RANGE)); assertThrows(IncorrectOperationException.class, ()->markupModel.removeHighlighter(highlighter2)); }