static ModelSyntaxException idlSyntaxError(String message, SourceLocation location) {
        return idlSyntaxError(null, message, location);
    }
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