Collections.sort(list, comparator)
which can be replaced with list.sort(comparator)
.
Collections.sort
is just a wrapper, so it is better to use an instance method directly.
This inspection only reports if the language level of the project or module is 8 or higher.