public static ValidationEvent fromSourceException(SourceException exception, String prefix) {
        // Extract shape IDs from exceptions that implement ToShapeId.
        ShapeId id = (exception instanceof ToShapeId)
                ? ((ToShapeId) exception).toShapeId()
                : null;
        return fromSourceException(exception, prefix, id);
    }
Creates a new ValidationEvent from a {@link SourceException}.

@param exception Exception to use to create the event.
@param prefix Prefix string to add to the message.
@return Returns a created validation event with an ID of Model.
smithy-model/src/main/java/software/amazon/smithy/model/validation/ValidationEvent.java