GROOVY-6885: make inner class aware of enclosing Closure