docs: public static <T, R> R functionByBoolean(boolean bool, T target,
              Function<T, R> trueFunction, Function<T, R> falseFunction) {
          return bool ? trueFunction.apply(target) : falseFunction.apply(target);
      }