Find try { x } catch (e: Exception) { null } patterns
ProprietarySwallowing every exception into null discards diagnostic information and conflates 'no value' with 'I lost the cause'. runCatching { x }.getOrNull() matches the shape, and .onFailure { … } keeps a hook for diagnostics if you decide you want one later.
org. openrewrite. kotlin. functional. FindTryCatchReturningNull$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. functional. FindTryCatchReturningNull$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.