void (@NotNull Graphics g, @NotNull Editor editor, @NotNull Range range, int framingBorder, boolean isIgnored) { FlagsProvider<DefaultLineFlags> flagsProvider = isIgnored ? DefaultFlagsProvider.ALL_IGNORED : DefaultFlagsProvider.DEFAULT; List<ChangesBlock<DefaultLineFlags>> blocks = VisibleRangeMerger.merge(editor, Collections.singletonList(range), flagsProvider, g.getClipBounds()); for (ChangesBlock<DefaultLineFlags> block : blocks) { paintChangedLines((Graphics2D)g, editor, block.changes, framingBorder); } }