void () { myFixture.allowTreeAccessForAllFiles(); addJavaFile("x/Sub.java", "package x; " + "import y.C; " + "class Sub extends C {}"); addJavaFile("y/C.java", """ package y; public class C { public int foo = 0; public void bar() {} }"""); addJavaFile("y/U.java", """ package y; import x.Sub; public class U {{ Sub s = new Sub(); s.bar(); int a = s.foo; }}"""); myFixture.configureByFiles("y/C.java","x/Sub.java"); myFixture.checkHighlighting(); }