Fix AST transformations like @CompileStatic not applied to trait helper