Expanding lambda expressions to anonymous classes may be useful if you need to implement other methods inside an anonymous class.
Example:
s -> System.out.println(s)
After the quick-fix is applied:
new Consumer<String>() {
@Override
public void accept(String s) {
System.out.println(s);
}
}
Lambda expression appeared in Java 8. This inspection can help to downgrade for backward compatibility with earlier Java versions.