@Override
    public Builder toBuilder() {
        Builder builder = new Builder();
        builder.sourceLocation = sourceLocation;
        builder.message = message;
        builder.severity = severity;
        builder.eventId = eventId;
        builder.shapeId = shapeId;
        builder.suppressionReason = suppressionReason;
        builder.hint = hint;
        return builder;
    }
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.
@param shapeId ShapeId to associate with the event.
@return Returns a created validation event with an ID of Model.
smithy-model/src/main/java/software/amazon/smithy/model/validation/ValidationEvent.java