void () { VirtualFile foo = myFixture.addFileToProject("Foo.java", "class Foo {}").getVirtualFile(); PsiClass bar = myFixture.addClass("class Bar extends Foo {}"); assertEquals("Foo", bar.getSuperClass().getName()); PsiUtilCore.ensureValid(bar.getSuperClass()); PushedFilePropertiesUpdater.getInstance(getProject()).filePropertiesChanged(foo, Conditions.alwaysTrue()); assertEquals("Foo", bar.getSuperClass().getName()); PsiUtilCore.ensureValid(bar.getSuperClass()); }