code: public static <T, R> List<R> buildNewList(Collection<T> collection,
              Function<T, R> transformFunction) {
          return collection.stream().map(transformFunction)
                  .collect(Collectors.toList());
      }
docs: Build new list list.
  
  @param <T>               the type parameter
  @param <R>               the type parameter
  @param collection        the collection
  @param transformFunction the transform function
  @return the list