private Set<String> getValidatorNames(Model model) {
        ArrayNode validators = model.getMetadata()
                .getOrDefault("validators", Node.arrayNode())
                .expectArrayNode();
        Set<String> metadataSuppressions = new HashSet<>();
        for (Node validator : validators) {
            ObjectNode validatorObject = validator.expectObjectNode();
            String id = validatorObject
                    .getStringMember("id")
                    .orElseGet(() -> validatorObject.expectStringMember("name"))
                    .getValue();
            metadataSuppressions.add(id);
        }
        return metadataSuppressions;
    }
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