Reports if a trivial lambda expression is used where there's an alternative method which behaves the same way, but accepts a concrete value instead of a lambda. This simplifies the code.

Example:

  Optional.orElseGet(() -> null)

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

  Optional.orElse(null)
New in 2017.1