code: public void visitNewClass(JCNewClass tree) {
              ClassSymbol c = (ClassSymbol)tree.constructor.owner;
              addFreeVars(c);
              super.visitNewClass(tree);
          }
docs: If tree refers to a class instance creation expression
  add all free variables of the freshly created class.