int leftEndLine= leftLine - shiftAfter;
ILineRange leftRange= new LineRange(leftStartLine, leftEndLine - leftStartLine);
IRangeComparator reference= new DocEquivalenceComparator(leftEquivalent, leftRange);
// right (actual) document
int rightStartLine= consistentBefore.rightStart() + shiftBefore;
int rightLine= consistentAfter.rightEnd();
if (!leftToRight)
rightLine += lineDelta;
int rightEndLine= rightLine - shiftAfter;
ILineRange rightRange= new LineRange(rightStartLine, rightEndLine - rightStartLine);