Redundant SAM constructor

Last modified: 03 December 2024

Reports SAM (Single Abstract Method) constructor usages which can be replaced with lambdas.

Example:

After the quick-fix is applied: