You may need to override toString
on any recursive or deeply-nested data structure, since IntelliJ will ask the Java Debugger (JDB) to call toString all the time.
This will blow up your memory.
Useful for any number of reasons: testing on a different OS, using lots of memory/cpu resources you don't have locally, etc.
See an Intellij / IDEA guide for background.