void () { myFixture.allowTreeAccessForAllFiles(); addJavaFile("x/Sub.java", """ package x; public class Sub { Object o = new C(); } """); addJavaFile("x/C.java", """ package x;\s <warning descr="Access can be package-private">public</warning> class C { }"""); myFixture.configureByFiles("x/C.java", "x/Sub.java"); myFixture.checkHighlighting(); }