This is a reminder to myself.
I had a trouble with IntelliJ IDEA today. It was the same as I had some time ago on a different computer.
Process terminated with exit code 3
After a bit of digging around the solution was obvious: increase the maximum heap size in Settings | Compiler.