[Intellij] pointless boolean expressions
[Intellij] Delete unnecessary imports
[Intellij] Replace if with && or || where possible
[Intellij] Simplify to foreach loops
[Intellij] Replace indexOf with contains
[Intellij] Remove unnecessary boxing
[Intellij] Replace while with foreach loop
[Intellij] Pointless arithmetic
[Intellij] Redundant array creation
[Intellij] Redundant type casting
Clean up formatting of recent PR