private Set<String> getRemovedValidators(TransformContext context, Config config) {
        // Validators could have been removed by other transforms in this projection,
        // and if they were removed, then validation events referring to them are
        // no longer relevant. We don't want to keep suppressions around for validators
        // that were removed.
        if (!context.getOriginalModel().isPresent()) {
            return Collections.emptySet();
        }

        Set<String> originalValidators = getValidatorNames(context.getOriginalModel().get());
        Set<String> updatedValidators = getValidatorNames(context.getModel());

        if (originalValidators.equals(updatedValidators)) {
            return Collections.emptySet();
        }

        originalValidators.removeAll(updatedValidators);

        if (config.getRemoveUnused()) {
            LOGGER.info(() -> "Detected the removal of the following validators: "
                    + originalValidators
                    + ". Suppressions that refer to these validators will be removed.");
        }

        return originalValidators;
    }
Sets a list of namespaces that cannot be referred to in metadata suppressions.

<p>Metadata suppressions that refer to namespaces in this list,
including "*", will be removed.

<p>This setting cannot be used in tandem with {@code namespaceAllowList}.

@param namespaceDenyList Namespaces to deny.
smithy-build/src/main/java/software/amazon/smithy/build/transforms/FilterSuppressions.java