void () { myFixture.addClass("package foo; public class Log {}"); myFixture.addClass("package foo; public class Imported {}"); myFixture.addClass("package bar; public class Log {}"); myFixture.configureByText("a.java", """ import foo.Imported; public class Foo { Lo<caret>g l; Imported i; } """); importClass(); myFixture.checkResult(""" import foo.Imported; import foo.Log; public class Foo { Lo<caret>g l; Imported i; } """); }