public T unwrap() {
        return validate().orElseThrow(() -> new IllegalStateException("Validated result contains no value"));
    }
Get the result, but throw if there are any ERROR or DANGER events or if the
result is empty.

@return Returns the result.
@throws ValidatedResultException if there are any ERROR or DANGER events.
@throws IllegalStateException if there is no result.
smithy-model/src/main/java/software/amazon/smithy/model/validation/ValidatedResult.java