Use StringUtils#isNotEmpty(String)

MSAL

Replace str != null && !str.isEmpty() with StringUtils.isNotEmpty(str).

org.openrewrite.java.recipes.UseStringUtilsRecipes$StringUtilsIsNotEmptyRecipe
mod 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.