code: @Override
    public void exitScope(NodeTraversal t) {
      if (t.isHoistScope()) {
        pop(blockStack);
      }
      behavior.afterExitScope(t, new ReferenceMapWrapper(referenceMap));
    }
docs: Updates block stack and invokes any additional behavior.