This inspection suggests to use Integer.compare(), etc. static methods where constructs involving boxing Integer.valueOf(x).compareTo(y) are used.

Double.compare and Float.compare methods appeared in Java 1.4, methods for other boxed types are available since Java 1.7

New in 2017.2