Fix IntelliJ build
Remove debug, unused code