void () { myFixture.allowTreeAccessForAllFiles(); addJavaFile("x/Outer.java", """ package x; class Outer { static Inner makeInner() { return new Inner(); } static class Inner { void frob() {} } } """); addJavaFile("x/Consumer.java", """ package x; public class Consumer { public void doIt() { Outer.makeInner().frob(); } }"""); myFixture.configureByFiles("x/Outer.java", "x/Consumer.java"); myFixture.checkHighlighting(); }