static ModelSyntaxException idlSyntaxError(ShapeId shape, String message, SourceLocation location) {
        return ModelSyntaxException.builder()
                .message(format("Syntax error at line %d, column %d: %s",
                        location.getLine(),
                        location.getColumn(),
                        message))
                .sourceLocation(location)
                .shapeId(shape)
                .build();
    }
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