Went through files and applied IntelliJ style fixes, replacing as many anonymous classes with lambdas as possible.