Find setOf(a, b, c).filterNotNull() patterns
ProprietarySame shape as listOf(...).filterNotNull() — building a set with nulls and filtering them out. setOfNotNull(a, b, c) exists for exactly this case.
org. openrewrite. kotlin. idiom. FindSetOfFilterNotNull$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. idiom. FindSetOfFilterNotNull$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.