MarkupIterator<RangeHighlighterEx> (int startOffset, int endOffset) { startOffset = Math.max(0,startOffset); endOffset = Math.max(startOffset, endOffset); return IntervalTreeImpl .mergingOverlappingIterator(myHighlighterTree, new ProperTextRange(startOffset, endOffset), myHighlighterTreeForLines, roundToLineBoundaries(getDocument(), startOffset, endOffset), RangeHighlighterEx.BY_AFFECTED_START_OFFSET); }