cache groovy inner classes, more correctly cache groovy class methods (IDEA-52183)