code: public static Excerpt generated(Class<?> generator) {
      return code -> {
        code.feature(JavaxPackage.JAVAX).generated().ifPresent(generated -> {
          code.addLine("@%s(\"%s\")", generated, generator.getName());
        });
      };
    }
docs: Returns an excerpt of the {@link javax.annotation.Generated} annotation, if available,
  with value set to the full name of the {@code generator} class as recommended.