@Override
    public int hashCode() {
        int result = hash;
        if (result == 0) {
            result = Objects.hash(eventId, shapeId, severity, sourceLocation, message, suppressionReason, hint);
            hash = result;
        }
        return result;
    }
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