@Override
    protected Model transformWithConfig(TransformContext context, Config config) {
        Model model = context.getModel();
        ModelTransformer transformer = context.getTransformer();
        Predicate<Shape> keepTraitDefsByTag = trait -> config.getExportTagged().stream().noneMatch(trait::hasTag);

        return transformer.getModelWithoutTraitShapes(model, keepTraitDefsByTag);
    }
Gets the set of tags that are used to export trait definitions.

@return the tags that are used to export trait definitions.
smithy-build/src/main/java/software/amazon/smithy/build/transforms/RemoveTraitDefinitions.java