GROOVY-6357: Inner classes in Groovy should have the same access modifiers as in Java