int translateOffset(int offset, boolean leanRight) {
    for (Fragment range : updatedRanges) {
      offset = leanRight ? range.adjustForwardLeanRight(offset) : range.adjustForward(offset);
    }
    return offset;
  }
int translateOffset(int offset, boolean leanRight)