protected JCBlock processElement(final JCBlock tree, final CompilationUnitTree cut, Scope validScope) {
if (tree == null) return null;
for (Tree stmt : tree.stats) {
validScope = getScope(stmt, cut, validScope);
Node n = new Node(validScope, stmt);
tree.stats = (com.sun.tools.javac.util.List<JCStatement>) processStmt(n, cut, tree);
if (tree.stats.indexOf(stmt) < tree.stats.size() - 1) {
validScope = trees.getScope(trees.getPath(cut, stmt));
}
}