public class InformerTextGenerator {
public static CompilationUnit generateCompilationUnit(InformerInfos informerInfos, Collection<String> qualifiedEnums, Map<String, Class> resolvedInformers) {
CompilationUnit cu = new CompilationUnit();
// set the package
cu.setPackage(new PackageDeclaration(ASTHelper.createNameExpr(informerInfos.classPackage)));
// Finally add imports (they may have been "improved" by informers generation)
List<ImportDeclaration> baseImports = informerInfos.imports;
// Extracting effective imports
Collection<String> imports = new LinkedList<String>();