@SuppressWarnings("unchecked")
    private static Class<? extends Annotation> resolveJavaDefault() {
        try {
            return (Class<? extends Annotation>) Class.forName("javax.annotation.processing.Generated");
        } catch (Exception e) {
            // Try next one
        }

        try {
            return (Class<? extends Annotation>) Class.forName("javax.annotation.Generated");
        } catch (Exception e) {
            // Try next one
        }

        try {
            return (Class<? extends Annotation>) Class.forName("jakarta.annotation.Generated");
        } catch (Exception e) {
            // Try next one
        }

        throw new IllegalStateException("Can't find Generated annotation");
    }
Resolve the java {@code @Generated} annotation (can be of type {@code javax.annotation.Generated}
or {@code javax.annotation.processing.Generated} depending on the java version.

@return the Generated annotation class from java. Never {@code null}.
querydsl-codegen/src/main/java/com/querydsl/codegen/GeneratedAnnotationResolver.java