code: public static <R> R supplierByBoolean(boolean bool,
              Supplier<R> trueSupplier, Supplier<R> falseSupplier) {
          return bool ? trueSupplier.get() : falseSupplier.get();
      }
docs: Supplier by boolean r.
  
  @param <R>           the type parameter
  @param bool          the bool
  @param trueSupplier  the true supplier
  @param falseSupplier the false supplier
  @return the r