docs: public int set(long idx, int value) {
          checkIndex(idx);
          int i = SafeCast.safeLongToInt(idx + start);
          int old = elements[i];
          elements[i] = value;
          return old;
      }