I would like to see the contents of a certain Enumeration<T>
instance. In the absence of a List/Array like type accepting it in its constructor another viable option would be a Debugger Visualizer, something that exists in VS.
How can I do it in IntelliJ?
IntelliJ IDEA has Data Type Renderers for the debugger:
IntelliJ IDEA allows you to specify how different objects are displayed in the debugger on a class-by-class basis. You can assign expressions to display rather than rely on the object's String representation.
For example, if an object represents a user, you may want to see users represented by their login name; or, for a cache entry object, its age and contents may be appropriate. IntelliJ IDEA refers to these as type renderers.