void () { LOG.assertTrue(!myStateIsOutOfDate); UnifiedDiffChange change = myChanges.get(myIndex); myIndex++; LineFragment lineFragment = change.getLineFragment(); Document document = getContent2().getDocument(); for (int lineNumber = lineFragment.getStartLine2(); lineNumber < lineFragment.getEndLine2(); lineNumber++) { int offset1 = document.getLineStartOffset(lineNumber); int offset2 = document.getLineEndOffset(lineNumber); CharSequence line = document.getImmutableCharSequence().subSequence(offset1, offset2); addLine(lineNumber, line); } }