// Add imports for annotations to the enum constants.
for (final Iterator eit = newEnumDeclaration.enumConstants()
.iterator(); eit.hasNext();) {
final Object obj = eit.next();
final EnumConstantDeclaration ecd = (EnumConstantDeclaration) obj;
for (final Iterator emit = ecd.modifiers().iterator(); emit
.hasNext();) {
final Object o = emit.next();
if (o instanceof Annotation) {
final Annotation anno = (Annotation) o;
final String newName = importRewrite