void () { for (Range range : changes.iterateUnchanged()) { int count = range.end1 - range.start1; for (int i = 0; i < count; i++) { int index1 = range.start1 + i; int index2 = range.start2 + i; Line line1 = lines1.get(index1); Line line2 = lines2.get(index2); if (!ComparisonUtil.isEquals(sample, line1.getContent(), IGNORE_WHITESPACES)) { if (line1.equals(line2)) { flush(index1, index2); builder.markEqual(index1, index2); } else { flush(index1, index2); sample = line1.getContent(); } } } } flush(changes.getLength1(), changes.getLength2()); }