@Override
    protected Model transformWithConfig(TransformContext context, Config config) {
        Set<String> namespaces = config.getNamespaces();
        Model model = context.getModel();
        ModelTransformer transformer = context.getTransformer();
        return transformer.filterShapes(model, shape -> {
            return Prelude.isPreludeShape(shape) || namespaces.contains(shape.getId().getNamespace());
        });
    }
Sets the list of namespaces to include.

@param namespaces Namespaces to include.
smithy-build/src/main/java/software/amazon/smithy/build/transforms/IncludeNamespaces.java