When item is of an enum type, values of that enum type can be accessed without the regular EnumType -> ... prefix. This is invalid, and leads to issues in the type system and during code generation.
Example:
enum MyEnum:
A
B
reporting rule Rule from MyEnum:
[A, B] any = item
This is unintended behaviour and leads to invalid Java code.