public Builder newModel(ValidatedResult<Model> newModel) {
            this.newModel = newModel.getResult()
                    .orElseThrow(() -> new IllegalArgumentException("No new model present in ValidatedResult"));
            this.newModelEvents = newModel.getValidationEvents();
            return this;
        }
Sets the new model to compare against along with the validation
events encountered while loading the model.

@param newModel New version of a model with events.
@return Returns the builder.
smithy-diff/src/main/java/software/amazon/smithy/diff/ModelDiff.java