code: public static <T1, T2, T3> TriConsumer<T1, T2, T3> ignore3rd(BiConsumer<T1, T2> consumer, Class<T3> ignored) {
          dbc.precondition(consumer != null, "cannot ignore parameter of a null consumer");
          return (first, second, third) -> consumer.accept(first, second);
      }
docs: Adapts a binary consumer to a ternary consumer by ignoring the third
  parameter.
  
  @param <T1> the adapted consumer first parameter type
  @param <T2> the adapted consumer second parameter type
  @param <T3> the adapted consumer third parameter type
  @param consumer the consumer to be adapted
  @param ignored the adapted consumer ignored parameter type class
  @return the adapted ternary consumer