code: public static <T, U> void consumeIfTrue(boolean bool, T target1, U target2,
              BiConsumer<T, U> biConsumer) {
          if (bool)
              biConsumer.accept(target1, target2);
      }
docs: Consume if true.
  
  @param <T>        the type parameter
  @param <U>        the type parameter
  @param bool       the bool
  @param target1    the target 1
  @param target2    the target 2
  @param biConsumer the bi consumer