void () { VirtualFile file = myFixture.addFileToProject("src1/A.java", "class A {}").getVirtualFile(); FilePropertyKey<LanguageLevel> javaLanguageLevelKey = FilePropertyPusher.EP_NAME.findExtension(JavaLanguageLevelPusher.class).getFilePropertyKey(); LanguageLevel languageLevel = javaLanguageLevelKey.getPersistentValue(file.getParent()); assertNotNull(languageLevel); assertNotNull(findClass("A")); // be a :hacker:😀 // do it manually somehow // seems property pushers are crazy, we know it from its name javaLanguageLevelKey.setPersistentValue(file.getParent(), null); // fire any event FileContentUtilCore.reparseFiles(file); assertNull(javaLanguageLevelKey.getPersistentValue(file.getParent())); assertNull(findClass("A")); // and return everything to a normal state javaLanguageLevelKey.setPersistentValue(file.getParent(), languageLevel); FileContentUtilCore.reparseFiles(file); assertNotNull(javaLanguageLevelKey.getPersistentValue(file.getParent())); assertNotNull(findClass("A")); }