// Given the offset in one document, this finds the offset of that character in the other
 // document.
 // If there is a perfect match, then it is easy to know what to return.
 // If it doesn't appear in the other document, then return it's insert point.
 // If it is part of a change, return -1.
 public int getBaseOffset(int witnessOffset, boolean getEnd) {
   return diff.getCorrespondingBaseOffset(witnessOffset, getEnd);
 }