void () { myFixture.allowTreeAccessForAllFiles(); addJavaFile("x/Outer.java", """ package x; public class Outer { enum E {A} static final E abc = E.A; public static void main(String[] args) { System.out.println(abc.ordinal()); } } """); addJavaFile("x/Consumer.java", """ package x; public class Consumer { public String foo() { return Outer.abc.name(); } }"""); myFixture.configureByFiles("x/Outer.java", "x/Consumer.java"); myFixture.checkHighlighting(); }