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