Use StringUtils#isNullOrEmpty(String)
MSALReplace str == null || str.isEmpty() with StringUtils.isNullOrEmpty(str).
org. openrewrite. java. recipes. UseStringUtilsRecipes$StringUtilsIsNullOrEmptyRecipemod run . --recipe= 'org. openrewrite. java. recipes. UseStringUtilsRecipes$StringUtilsIsNullOrEmptyRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.