public Object visit(StatementList node) {
            // Just traverse the last statement in the list.
            Statement[] statements = node.getStatements();
            for (int i = statements.length - 1; i >= 0; i--) {
                Statement stmt = statements[i];
                if (stmt != null) {
                    statements[i] = (Statement)stmt.accept(this);
                    break;
                }
            }
            return node;
        }