code: public static <T> Collector<T, ?, ParetoFront<T>>
  	toParetoFront(final Comparator<? super T> dominance) {
  		return Collector.of(
  			() -> new ParetoFront<>(dominance),
  			ParetoFront::add,
  			ParetoFront::merge
  		);
  	}
docs: Return a pareto-front collector with the given pareto {@code dominance}
  measure.
  
  @param dominance the pareto dominance comparator
  @param <T> the element type
  @return a new pareto-front collector
  @throws NullPointerException if the given {@code dominance} collector is
  {@code null}