Find ?.apply { } whose result is discarded
Proprietaryx?.apply { … } returns the receiver, but if the result is discarded the safe-call's return value adds nothing. Use x?.also { … } or move the side effect out of apply, where the receiver isn't needed.
org. openrewrite. kotlin. idiom. FindApplyResultUnused$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. idiom. FindApplyResultUnused$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.