Find requireNotNull(javaCall()) patterns
ProprietaryrequireNotNull(javaApi.something()) is the safe-conversion idiom when a Java API returns an unannotated reference (platform type T!). Once the underlying API is annotated @Nullable/@NotNull (or migrated to Kotlin), the wrapper either becomes javaApi.something()!! or disappears entirely.
org. openrewrite. kotlin. interop. FindRequireNotNullOnJavaCall$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. interop. FindRequireNotNullOnJavaCall$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.