GROOVY-6180: TypeCheckingMode.SKIP not always applied to anonymous inner classes