move Ast.findNearestOpenStatementBlock to Core project