Removed some "final" qualifiers from static methods.

Also fixed some other warnings IntelliJ annoyed me with