private Set<String> getAnnotationTypes(EntityType model) {
        Set<String> imports = new HashSet<String>();
        for (Annotation annotation : model.getAnnotations()) {
            imports.add(annotation.annotationType().getName());
        }
        if (propertyAnnotations) {
            for (Property property : model.getProperties()) {
                for (Annotation annotation : property.getAnnotations()) {
                    imports.add(annotation.annotationType().getName());
                }
            }
        }
        return imports;
    }
Create a new {@code GroovyBeanSerializer} instance

@param propertyAnnotations true, to serialize property annotations
@param javadocSuffix suffix to be used after the simple name in class level javadoc
querydsl-codegen/src/main/java/com/querydsl/codegen/GroovyBeanSerializer.java