code: public static <T1, T2, T3> TriFunction<T1, T2, T3, Void> function(TriConsumer<T1, T2, T3> adaptee) {
          dbc.precondition(adaptee != null, "cannot adapt a null consumer");
          return (first, second, third) -> {
              adaptee.accept(first, second, third);
              return null;
          };
      }
docs: Adapts a ternary consumer to a ternary function.
  
  @param <T1> the consumer first parameter type
  @param <T2> the consumer second parameter type
  @param <T3> the consumer third parameter type
  @param adaptee the consumer to be adapted
  @return the adapted function