AnnotationTypeDeclaration ann = (AnnotationTypeDeclaration) env.getTypeDeclaration(CompanionOf.class.getName());
for(Declaration d : env.getDeclarationsAnnotatedWith(ann))
d.accept(this);
try {
cm.build(new FilerCodeWriter(env.getFiler()));
} catch (IOException e) {
throw new Error(e);
}
cm = null;
}