code: public final static <T> CompletableFuture<List<T>> streamToCompletableFuture(final Stream<T> stream) {
          return CompletableFuture.completedFuture(stream.collect(Collectors.toList()));
  
      }
docs: Create a CompletableFuture containing a List materialized from a Stream
  
  @param stream To convert into an Optional
  @return CompletableFuture with a List of values