void (@Nullable MarkupModelEx model1, @Nullable MarkupModelEx model2, @NotNull List<? extends HighlightRange> ranges) { for (HighlightRange range : ranges) { if (range.getSide().isLeft()) { if (model1 != null) processRange(model1, range); } else { if (model2 != null) processRange(model2, range); } } }