IDEA-120443 Groovy: Idea can't compile valid code in implicitly typed statically compiled extension module
(cherry picked from commit eb470ce)