void (int start1, int start2, int end1, int end2) { if (start1 == end1 && start2 == end2) return; CharSequence sequence1 = myText1.subSequence(start1, end1); CharSequence sequence2 = myText2.subSequence(start2, end2); DiffIterable changes = ByCharRt.comparePunctuation(sequence1, sequence2, myIndicator); for (Range ch : changes.iterateUnchanged()) { myBuilder.markEqual(start1 + ch.start1, start2 + ch.start2, start1 + ch.end1, start2 + ch.end2); } }