code: public static <T> void consumeByBoolean(boolean bool, T target,
              Consumer<T> trueConsumer, Consumer<T> falseConsumer) {
          if (bool)
              trueConsumer.accept(target);
          else
              falseConsumer.accept(target);
      }
docs: Consume by boolean.
  
  @param <T>           the type parameter
  @param bool          the bool
  @param target        the target
  @param trueConsumer  the true consumer
  @param falseConsumer the false consumer