private List<String> parseAttributeValues() {
        List<String> result = new ArrayList<>();
        result.add(parseAttributeValue(this));
        ws();

        while (peek() == ',') {
            skip();
            result.add(parseAttributeValue(this));
            ws();
        }

        return result;
    }
Filter out unnecessary identity selectors when creating the finalized AST to evaluate selectors.
smithy-model/src/main/java/software/amazon/smithy/model/selector/SelectorParser.java