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