void () { ((StatisticsManagerImpl)StatisticsManager.getInstance()).enableStatistics(myFixture.getTestRootDisposable()); myFixture.addClass("package foo; public class Log {}"); myFixture.addClass("package bar; public class Log {}"); String textBefore = """ public class Foo { Lo<caret>g l; } """; String textAfter = "import bar.Log;\n\npublic class Foo {\n Lo<caret>g l;\n}\n"; myFixture.configureByText("a.java", textBefore); importClass(); myFixture.checkResult(textAfter); myFixture.addClass("package aPackage; public class Log {}"); myFixture.configureByText("b.java", textBefore); importClass(); myFixture.checkResult(textAfter); }