code: public boolean add(T t) {
      if (this.closed) {
        throw new RuntimeException(
            ConcurrentBoundedPriorityIterable.class.getSimpleName() + " is no longer accepting requests!");
      }
  
      AllocatedRequestsIteratorBase.RequestWithResourceRequirement<T> newElement =
          new AllocatedRequestsIteratorBase.RequestWithResourceRequirement<>(t,
              this.estimator.estimateRequirement(t, this.resourcePool));
      boolean addedWorkunits = addImpl(newElement);
      if (!addedWorkunits) {
        this.rejectedElement = true;
      }
      return addedWorkunits;
    }
docs: Offer an element to the container.
  @return true if the element was added, false if there was no space and we could not evict any elements to make it fit.
  Note that the element may get evicted by future offers, so a return of true is not a guarantee that the
  element will be present at any time in the future.