Find when expressions with more than 10 branches

Proprietary

A when with many branches is often hiding a sealed-class or strategy-table refactor — and even when it isn't, it's a hotspot a reviewer or LLM agent should see when scanning a file. Each match is a candidate for restructuring.

org.openrewrite.kotlin.search.FindLargeWhenBranches$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.search.FindLargeWhenBranches$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.