if (getClass().getName().equals(elements[i].getClassName()) == false) {
break;
}
lines.add(elements[i].toString());
}
unit.putModelTrait(CommentEmitTrait.class, new CommentEmitTrait(lines));
System.out.println(unit);
compiler.addSource(new CompilationUnitJavaFile(unit));
List<Diagnostic<? extends JavaFileObject>> diagnostics = compiler.doCompile();
if (diagnostics.isEmpty() == false) {
throw new AssertionError(diagnostics + ":::" + unit);