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