public static FEEL_1_1Parser parse(FEELEventListenersManager eventsManager, String source, Map<String, Type> inputVariableTypes, Map<String, Object> inputVariables, Collection<FEELFunction> additionalFunctions, List<FEELProfile> profiles, FEELTypeRegistry typeRegistry) {
        CharStream input = CharStreams.fromString(source);
        FEEL_1_1Lexer lexer = new FEEL_1_1Lexer( input );
        CommonTokenStream tokens = new CommonTokenStream( lexer );
        FEEL_1_1Parser parser = new FEEL_1_1Parser( tokens );

        ParserHelper parserHelper = new ParserHelper(eventsManager);
        additionalFunctions.forEach(f -> parserHelper.getSymbolTable().getBuiltInScope().define(f.getSymbol()));
        parser.setHelper(parserHelper);
        parser.setErrorHandler( new FEELErrorHandler() );
        parser.removeErrorListeners(); // removes the error listener that prints to the console
        parser.addErrorListener( new FEELParserErrorListener( eventsManager ) );

        // pre-loads the parser with symbols
        defineVariables( inputVariableTypes, inputVariables, parser );
        
        if (typeRegistry != null) {
            parserHelper.setTypeRegistry(typeRegistry);
        }

        return parser;
    }
@Test
    void inValueList() {
        // TODO review this test might be wrong as list is not homogeneous 
        String inputExpression = "x / 4 in ( 10+y, true, 80, someVar )";
        BaseNode inNode = parse( inputExpression );

        assertThat( inNode).isInstanceOf(InNode.class);
        assertThat( inNode.getResultType()).isEqualTo(BuiltInType.BOOLEAN);
        assertThat( inNode.getText()).isEqualTo(inputExpression);

        InNode in = (InNode) inNode;
        assertThat( in.getValue()).isInstanceOf(InfixOpNode.class);
        assertThat( in.getValue().getText()).isEqualTo( "x / 4");

        assertThat( in.getExprs()).isInstanceOf(ListNode.class);
        assertThat( in.getExprs().getText()).isEqualTo( "10+y, true, 80, someVar");

        ListNode list = (ListNode) in.getExprs();
        assertThat( list.getElements().get( 0 )).isInstanceOf(InfixOpNode.class);
        assertThat( list.getElements().get( 1 )).isInstanceOf(BooleanNode.class);
        assertThat( list.getElements().get( 2 )).isInstanceOf(NumberNode.class);
        assertThat( list.getElements().get( 3 )).isInstanceOf(NameRefNode.class);
    }