void () { // erase old highlighting to make sure text is readable if markup update is slow myEditor.setHighlighter(DiffUtil.createEmptyEditorHighlighter()); UnifiedEditorRangeHighlighter.erase(myProject, myEditor.getDocument()); scheduleUpdate(); // NB: flush request might be overwritten by another 'scheduleUpdate()' // Ex: if XLineBreakpointImpl is updating its markers after us, triggering our MarkupModelListener // This will delay re-highlighting by 300ms causing blinking myUpdateQueue.sendFlush(); }