public DiskRangeList insertPartAfter(DiskRangeList other) {
    // The only allowed non-overlapping option is extra bytes at the end.
    if (other.offset > this.end || other.offset <= this.offset || other.end <= this.offset) {
      assertInvalidOrder(this.prev == null ? this : this.prev, this, other);
    }
    this.end = other.offset;
    return insertAfter(other);
  }
Inserts an intersecting range after current in the list and adjusts offset accordingly.
@param other the new element to insert
@return the new element.
storage-api/src/java/org/apache/hadoop/hive/common/io/DiskRangeList.java