String () { int lastLine = 0; for (Range range : ranges) { CharSequence newChunkContent = DiffRangeUtil.getLinesContent(otherText, otherLineOffsets, range.start2, range.end2); appendOriginal(lastLine, range.start1); append(newChunkContent, range.end2 - range.start2); lastLine = range.end1; } appendOriginal(lastLine, lineOffsets.getLineCount()); return stringBuilder.toString(); }