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