code: public boolean overlapsWith(IndexRange other) {
          checkArgNotNull(other, "other");
          return end > other.start && other.end > start;
      }
docs: Determines whether this range overlaps with the given other one.
  
  @param other the other range
  @return true if there is at least one index that is contained in both ranges