@Override
 public void endVisit(MethodDeclaration node) {
   if (!methodStack.isEmpty()) {
     methodStack.pop();
   }
   super.endVisit(node);
 }
 @Override
 public void endVisit(org.eclipse.jdt.core.dom.EnumDeclaration ed) {
   if (!typesInFile.isEmpty()) {
     String qualifiedTypeName = Joiner.on(".").skipNulls().join(typesInFile);
     String typeName = typesInFile.pop();
     types.put(typeName, currentPackage + "." + qualifiedTypeName);
   }
   super.endVisit(ed);
 }