private ScopedAttributeSelector.ScopedFactory parseScopedValue() {
        ws();
        if (peek() == '@') {
            List<String> path = parseScopedValuePath(this);
            ws();
            return value -> value.getPath(path);
        } else {
            String parsedValue = parseAttributeValue(this);
            ws();
            return value -> AttributeValue.literal(parsedValue);
        }
    }
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