void () { myFixture.configureByFiles("Foo.java"); rebuildProject(); CompilerDirectHierarchyInfo directInheritorInfo = getDirectInheritorsFor(myFixture.getJavaFacade().findClass(CommonClassNames.JAVA_UTIL_LIST)); PsiClass inheritor = assertOneElement(directInheritorInfo.getHierarchyChildren().map(PsiClass.class::cast).collect(Collectors.toList())); assertEquals("Foo.ListImpl", inheritor.getQualifiedName()); }