Find findByIdOrNull(id!!) calls
ProprietaryCalling findByIdOrNull(id!!) says two contradictory things at once: the caller insists the id is non-null (!!) but is willing to accept a null result if no row matches. If the id is genuinely non-null, the !! is dead weight; if it might be null, the call should branch before the lookup.
org. openrewrite. kotlin. spring. FindFindByIdOrNullWithNonNullableId$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. spring. FindFindByIdOrNullWithNonNullableId$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.