if (TreeInfo.isDefinition(tree)) {
if (tree.definesSymbol()) {
    public void changeOwner(Tree tree, final Symbol prevOwner, final Symbol newOwner) {	Traverser lifter = new Traverser() {	    public void traverse(Tree tree) {		if (TreeInfo.isDefinition(tree)) {		    Symbol sym = tree.symbol();                    if (sym != null && sym.owner() == prevOwner) {			sym.setOwner(newOwner);                    }		}		super.traverse(tree);	    }	};	lifter.traverse(tree);    }