void () { myFixture.allowTreeAccessForAllFiles(); myVisibilityInspection.SUGGEST_PACKAGE_LOCAL_FOR_TOP_CLASSES = false; addJavaFile("x/Outer.java", """ package x; public class Outer { } """); addJavaFile("x/Consumer.java", """ package x; public class Consumer { public void doIt() { System.out.println(Outer.class.hashCode()); } }"""); myFixture.configureByFiles("x/Outer.java", "x/Consumer.java"); myFixture.checkHighlighting(); }