Very often it's hard to trace back from generated code to the codegen that produced it. At Google, codegens very often make up the "long tail" of any migration, so being able to easily identify where the code is being generated is hugely important. Thus, we're trying to enforce that all generated code is tagged with @Generated (specifically, javax.annotation.processing.Generated), and includes a reference back to the generator that emitted it.
Is it possible to have javapoet do this automatically for top-level classes?