private static void addImports(AbstractModule module, String packageName) {
        @SuppressWarnings("unchecked")
        Set<String> imports = module.get(Set.class, CodegenModule.IMPORTS);
        if (imports.isEmpty()) {
            imports = Collections.singleton(packageName);
        } else {
            Set<String> old = imports;
            imports = new HashSet<>();
            imports.addAll(old);
            imports.add(packageName);
        }
        module.bind(CodegenModule.IMPORTS, imports);
    }
{@code SpatialSupport} provides support for spatial types in code generation

@author tiwe
querydsl-spatial/src/main/java/com/querydsl/spatial/apt/SpatialSupport.java