docs: private void increaseCapacity(boolean allowIllegalSize) {
      int newCapacity = (this.content.length == 0) ? DEFAULT_INIT_SIZE
          : this.content.length < 64 ? this.content.length * 2
              : this.content.length < 1067 ? this.content.length * 3 / 2
                  : this.content.length * 5 / 4;
      // never allocate more than we will ever need
      if (newCapacity > ArrayContainer.DEFAULT_MAX_SIZE && !allowIllegalSize) {
        newCapacity = ArrayContainer.DEFAULT_MAX_SIZE;
      }
      // if we are within 1/16th of the max, go to max
      if (newCapacity > ArrayContainer.DEFAULT_MAX_SIZE - ArrayContainer.DEFAULT_MAX_SIZE / 16
          && !allowIllegalSize) {
        newCapacity = ArrayContainer.DEFAULT_MAX_SIZE;
      }
      this.content = Arrays.copyOf(this.content, newCapacity);
    }