public static <T> T unwrap(@SuppressWarnings("OptionalUsedAsFieldOrParameterType") Optional<T> optional) {
        if ((Object) optional == null) { // (Object) cast suppress SonarCube warning
            return null;
        }
        return optional.orElse(null);
    }
Returns the inner value of the {@code Optional} unless the optional
is {@code null}, in which case {@code null} is returned.

@param <T>       the inner type
@param optional  the optional
@return          the inner value or {@code null}
runtime-parent/runtime-core/src/main/java/com/speedment/runtime/core/util/OptionalUtil.java