@SuppressWarnings("unchecked")
    public B clearTraits() {
        traits.clear();
        return (B) this;
    }
Removes all traits.

@return Returns the builder.
smithy-model/src/main/java/software/amazon/smithy/model/shapes/AbstractShapeBuilder.java