Applies automatic IntelliJ source code formatting, and various optimizations suggested by PMD.