void () { PsiFileImpl file = (PsiFileImpl)myFixture.addFileToProject("a.java", "package bar;"); assert !file.isContentsLoaded(); assert GistManager.getInstance() .newPsiFileGist(getTestName(true), 0, EnumeratorStringDescriptor.INSTANCE, p -> p.findElementAt(0).getText()).getFileData(file) .equals("package"); assert !file.isContentsLoaded(); }