code: public static <T> Stream<T> iteratorToStream(final Iterator<T> iterator) {
          return iteratorToStream(iterator, enableParallel);
      }
docs: Convert an Iterator to a Stream
  
  @param iterator the iterator
  @param <T> the type of the Stream
  @return the stream