Class MaybeUsesImport<P>

java.lang.Object
org.openrewrite.TreeVisitor<J,P>
org.openrewrite.java.JavaVisitor<P>
org.openrewrite.java.JavaIsoVisitor<P>
org.openrewrite.java.search.MaybeUsesImport<P>

@Incubating(since="7.4.0") public class MaybeUsesImport<P> extends JavaIsoVisitor<P>
Acts as a sort of bloom filter for the presence of an import for a particular type in a J.CompilationUnit, i.e. it may falsely report the presence of an import, but would never negatively report when the type is in present.