void () { final PyFile file1 = getTestFile("inheritorsWhenSuperClassImportedWithAs/a.py"); final PyFile file2 = getTestFile("inheritorsWhenSuperClassImportedWithAs/b.py"); final Project project = myFixture.getProject(); final Collection<PyClass> classes = StubIndex.getElements(PySuperClassIndex.KEY, "C", project, ProjectScope.getAllScope(project), PyClass.class); assertEquals(1, classes.size()); assertEquals("D", classes.iterator().next().getName()); assertNotParsed(file1); assertNotParsed(file2); }