static boolean containsErrorEvents(List<ValidationEvent> events) {
        for (ValidationEvent event : events) {
            if (event.getSeverity() == Severity.ERROR) {
                return true;
            }
        }
        return false;
    }
Checks if a list of validation events contains an ERROR severity.

@param events Events to check.
@return Returns true if an ERROR event is present.
smithy-model/src/main/java/software/amazon/smithy/model/loader/LoaderUtils.java