public static OptionalBoolean ofNullable(Boolean b) {
        if (b == null) {
            return OptionalBoolean.empty();
        } else {
            return OptionalBoolean.of(b);
        }
    }
Wraps the specified nullable value in an {@code OptionalBoolean}.

@param b  the value
@return   the wrapped optional
runtime-parent/runtime-core/src/main/java/com/speedment/runtime/core/util/OptionalUtil.java