public ModelAssembler validatorFactory(ValidatorFactory validatorFactory) {
        this.validatorFactory = Objects.requireNonNull(validatorFactory);
        return this;
    }
Sets a custom {@link ValidatorFactory} used to dynamically resolve
validator definitions.

<p>Note that if you do not provide an explicit validatorFactory, a
default factory is utilized that uses service discovery.

@param validatorFactory Validator factory to use.
@return Returns the assembler.
smithy-model/src/main/java/software/amazon/smithy/model/loader/ModelAssembler.java