void () { myFixture.allowTreeAccessForAllFiles(); addJavaFile("x/Sub.java", """ package x; import y.C; class Sub extends C { boolean f = new Err().isTVisible(); }"""); addJavaFile("y/C.java", """ package y; public class C { public static class Err { public boolean isTVisible() { return true; } } }"""); myFixture.configureByFiles("y/C.java","x/Sub.java"); myFixture.checkHighlighting(); }