private JmespathExpression parseFilter(JmespathExpression left) {
        // Parse the LHS of the condition node.
        JmespathExpression condition = expression(0);
        // Eat the closing bracket.
        iterator.expect(TokenType.RBRACKET);
        JmespathExpression conditionRhs = parseProjectionRhs(TokenType.FILTER.lbp);
        return new FilterProjectionExpression(
                left,
                condition,
                conditionRhs,
                condition.getLine(),
                condition.getColumn());
    }
Tokens that can follow led tokens.
smithy-jmespath/src/main/java/software/amazon/smithy/jmespath/Parser.java