public ModelAssembler copy() {
        ModelAssembler assembler = new ModelAssembler();
        assembler.traitFactory = traitFactory;
        assembler.validatorFactory = validatorFactory;
        assembler.inputStreamModels.putAll(inputStreamModels);
        assembler.validators.addAll(validators);
        assembler.documentNodes.addAll(documentNodes);
        assembler.mergeModels.addAll(mergeModels);
        assembler.shapes.addAll(shapes);
        assembler.pendingTraits.addAll(pendingTraits);
        assembler.metadata.putAll(metadata);
        assembler.disablePrelude = disablePrelude;
        assembler.properties.putAll(properties);
        assembler.disableValidation = disableValidation;
        assembler.validationEventListener = validationEventListener;
        assembler.stringTable = stringTable;
        return assembler;
    }
Creates a copy of the current model assembler.

@return Returns the created model assembler copy.
smithy-model/src/main/java/software/amazon/smithy/model/loader/ModelAssembler.java