@Override
    protected Model transformWithConfig(TransformContext context, Config config) {
        Model model = context.getModel();
        ModelTransformer transformer = context.getTransformer();
        Set<String> keys = config.getKeys();
        return transformer.filterMetadata(model, (key, value) -> keys.contains(key));
    }
Sets the list of keys to keep in metadata.

@param keys Metadata keys to keep.
smithy-build/src/main/java/software/amazon/smithy/build/transforms/IncludeMetadata.java