void () { final String fileName = getTestFileName(); String path = fileName.replaceAll("_.*$", "") + ".xsl"; final VirtualFile file = myFixture.copyFileToProject(path); myFixture.openFileInEditor(file); if (fileName.endsWith("_Loaded")) { ((XmlFile)myFixture.getFile()).getDocument(); assertTrue(((PsiFileEx)myFixture.getFile()).isContentsLoaded()); } else { assertFalse(((PsiFileEx)myFixture.getFile()).isContentsLoaded()); } }