private List<InternalSelector> parseSelectorFunctionArgs() {
        ws();
        List<InternalSelector> selectors = new ArrayList<>();
        expect('(');
        char next;

        do {
            selectors.add(AndSelector.of(recursiveParse()));
            ws();
            next = expect(')', ',');
        } while (next != ')');

        return selectors;
    }
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