GRAILS-11056 - methodNotFound does not need to be nested inside of setup
Simplify AST transformation

This moves some compile time generated code into a static helper method
add some types to be more friendly with the static type checker