public static OptionalInt ofNullable(Integer i) {
        if (i == null) {
            return OptionalInt.empty();
        } else {
            return OptionalInt.of(i);
        }
    }
Wraps the specified nullable value in an {@code OptionalInteger}.

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