public ModelAssembler reset() {
        shapes.clear();
        pendingTraits.clear();
        metadata.clear();
        mergeModels.clear();
        inputStreamModels.clear();
        validators.clear();
        documentNodes.clear();
        disablePrelude = false;
        disableValidation = false;
        validationEventListener = DEFAULT_EVENT_LISTENER;
        return this;
    }
Resets the state of the ModelAssembler.

<p>The following properties of the ModelAssembler are cleared when
this method is called:

<ul>
    <li>Validators registered via {@link #addValidator}</li>
    <li>Models registered via {@link #addImport}</li>
    <li>Models registered via {@link #addDocumentNode}</li>
    <li>Models registered via {@link #addUnparsedModel}</li>
    <li>Models registered via {@link #addModel}</li>
    <li>Shape registered via {@link #addModel}</li>
    <li>Metadata registered via {@link #putMetadata}</li>
    <li>Validation is re-enabled if it was disabled.</li>
    <li>Validation event listener via {@link #validationEventListener(Consumer)}</li>
</ul>

<p>The state of {@link #disablePrelude} is reset such that the prelude
is no longer disabled after calling {@code reset}.

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