Use Int.countTrailingZeroBits() instead of Integer.numberOfTrailingZeros

Proprietary

Integer.numberOfTrailingZeros(i) becomes i.countTrailingZeroBits() — the multiplatform Kotlin extension reads as a receiver call.

org.openrewrite.kotlin.migrate.UseIntCountTrailingZeroBits$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.migrate.UseIntCountTrailingZeroBits$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.