public boolean isBroken() {
        for (ValidationEvent event : events) {
            if (event.getSeverity() == Severity.ERROR || event.getSeverity() == Severity.DANGER) {
                return true;
            }
        }
        return false;
    }
Checks if the result has any error or danger events..

@return Returns true if there are errors or unsuppressed dangers.
smithy-model/src/main/java/software/amazon/smithy/model/validation/ValidatedResult.java