Add imports for fully qualified references to types

Apache 2.0

Any fully qualified references to Java types will be replaced with corresponding simple names and import statements, provided that it doesn't result in any conflicts with other imports or types declared in the local compilation unit.

org.openrewrite.java.ShortenFullyQualifiedTypeReferences
mod run . --recipe=org.openrewrite.java.ShortenFullyQualifiedTypeReferences

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.