void () { LightVirtualFile vFile = new LightVirtualFile("a.xxx", MockLanguageFileType.INSTANCE, "aaa"); PsiFile file = myDummyFile = PsiManager.getInstance(getProject()).findFile(vFile); assertNotNull(file); assertEquals(com.intellij.lang.Language.ANY, file.getViewProvider().getBaseLanguage()); assertEquals(PlainTextLanguage.INSTANCE, file.getLanguage()); assertEquals(file, file.getViewProvider().getPsi(file.getViewProvider().getBaseLanguage())); doReparse("b", 0); assertTrue("baaa", file.isValid()); assertEquals("baaa", file.getText()); assertEquals("baaa", file.getFirstChild().getText()); }