GROOVY-5989: resolve inner classes/interfaces