docs: @CanIgnoreReturnValue // TODO(kak): Consider removing this
    public <E extends T> E max(Iterator<E> iterator) {
      // let this throw NoSuchElementException as necessary
      E maxSoFar = iterator.next();
  
      while (iterator.hasNext()) {
        maxSoFar = max(maxSoFar, iterator.next());
      }
  
      return maxSoFar;
    }