I recently came across this stackoverflow post (Why isn't calling a static method by way of an instance an error for the Java compiler?) and it got me thinking - is it possible to configure IntelliJ to manually to throw errors / refuse to build if something like this occurs in code.
IntelliJ already detects such occurrences, but what I'm after is to have it refuse to build and throw errors when it detects something like so: