Inspectopedia
 
2024.3

Can be replaced with function reference

Info
New
Last modified: 03 December 2024

Reports function literal expressions that can be replaced with function references.

Replacing lambdas with function references often makes code look more concise and understandable.

Example:

After the quick-fix is applied: