Find functions returning Optional<T>
ProprietaryA Kotlin function that returns Optional<T> forces every caller into a .isPresent/.get() dance the language already expresses with T?. Returning the nullable type instead lets the call site use ?:, let, and smart-casts directly.
org. openrewrite. kotlin. interop. FindOptionalReturn$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. interop. FindOptionalReturn$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.