in plugin/src/main/groovy/grails/plugins/redis/ast/AbstractMemoizeASTTransformation.groovy [109:116]
private static void addImport(SourceUnit sourceUnit, Class serviceClass) {
if (!sourceUnit.AST.imports.any { it.className == ClassHelper.make(serviceClass).name }
&& !sourceUnit.AST.starImports.any {
it.packageName == "${ClassHelper.make(serviceClass).packageName}.".toString()
}) {
sourceUnit.AST.addImport(serviceClass.simpleName, ClassHelper.make(serviceClass))
}
}