void () { myFixture.addClass("package p1; public class Outer{}"); myFixture.addClass("package p2; public class Outer{}"); myFixture.configureByText("a.java", "package p2; class Outer1 extends p1.Outer {}"); doShortenRefs(); myFixture.checkResult(""" package p2; import p1.Outer; class Outer1 extends Outer {}"""); }