@Override
    public Builder toBuilder() {
        return builder()
                .metadata(metadata)
                .smithyTrace(smithyTrace)
                .definitions(artifactDefinitions)
                .shapes(shapes);
    }
Take this object and create a builder that contains all of the
current property values of this object.

@return a builder for type T
smithy-codegen-core/src/main/java/software/amazon/smithy/codegen/core/trace/TraceFile.java