This inspection warns about using single statement blocks which may be replaced with method references.
In some situations the substitution may be semantically different. It is recommended to check the code behaviour after applying this
inspection.
Inspired by "Ruby Style Guide"