HighlighterIterator (@NotNull MappedRange mapper, int shift) { int rangeStart = mapper.range.getStartOffset(); int rangeEnd = mapper.range.getEndOffset(); return new LimitedRangeHighlighterIterator(highlighter.createIterator(rangeStart + shift), rangeStart, rangeEnd); }