public static Class<?extends Annotation> resolve(@Nullable String generatedAnnotationClass) {
        if (generatedAnnotationClass != null) {
            try {
                return (Class<? extends Annotation>) Class.forName(generatedAnnotationClass);
            } catch (Exception e) {
                // Try next one
            }
        }

        return resolveDefault();
    }
Use the {@code generatedAnnotationClass} or use the JDK one.
<p>
A {@code null generatedAnnotationClass} will resolve to the java {@code @Generated} annotation (can be of type {@code javax.annotation.Generated}
or {@code javax.annotation.processing.Generated} depending on the java version.

@param generatedAnnotationClass the fully qualified class name of the <em>Single-Element Annotation</em> (with {@code String} element)
                                to use or {@code null}.
@return the provided {@code generatedAnnotationClass} if not {@code null} or the one from java. Never {@code null}.
@see <a href="https://docs.oracle.com/javase/specs/jls/se8/html/jls-9.html#jls-9.7.3">Single-Element Annotation</a>
querydsl-codegen/src/main/java/com/querydsl/codegen/GeneratedAnnotationResolver.java