code: public static <T> Choice<T> condition(boolean condition, T t) {
      return condition ? of(t) : Choice.<T>none();
    }
docs: Returns a {@code Choice} with {@code t} as an option if {@code condition}, and no options
  otherwise.