public ModelAssembler traitFactory(TraitFactory traitFactory) {
        this.traitFactory = Objects.requireNonNull(traitFactory);
        return this;
    }
Uses a custom {@link TraitFactory} to resolve and configure traits.

@param traitFactory Trait factory to use instead of the default.
@return Returns the assembler.
smithy-model/src/main/java/software/amazon/smithy/model/loader/ModelAssembler.java