void (MarkupModelEx markupModel) { markupModel.processRangeHighlightersOverlappingWith(myStartOffset, myEndOffset, highlighter -> { if (highlighter.getStartOffset() >= myStartOffset) { paintHighlighterAfterEndOfLine(highlighter); } return true; }); }