GROOVY-6404: Incorrect stubs for enums without constants