void () { addJavaFile("mypackage/sub1/Sub123.java", """ package mypackage.sub1; public class Sub123 {}"""); addJavaFile("mypackage/sub1/Intermediate.java", """ package mypackage.sub1; public class Intermediate { public Sub123 getSub() {return null;} }"""); myFixture.configureByFiles("mypackage/sub1/Sub123.java", "mypackage/sub1/Intermediate.java"); myFixture.checkHighlighting(); }