Reports collectors which could be simplified. In particular some cascaded groupingBy collectors could be expressed with simpler toMap collector which also will likely be more performant.

Example:

  Collectors.groupingByConcurrent(String::length, Collectors.collectingAndThen(Collectors.maxBy(String::compareTo), Optional::get));

After the quick-fix is applied the result looks like:

  Collectors.toConcurrentMap(String::length, Function.identity(), BinaryOperator.maxBy(String::compareTo));

This inspection only reports if the language level of the project or module is 8 or higher.

New in 2017.1