void () { PsiFile psiFile = PsiFileFactory.getInstance(getProject()).createFileFromText("a.txt", PlainTextFileType.INSTANCE, "foo bar"); VirtualFile vFile = psiFile.getViewProvider().getVirtualFile(); VirtualFileGist<Integer> vfsGist = gistReturningCalculationsCount(); PsiFileGist<Integer> psiGist = psiGistReturningCalculationsCount(); assert 1 == vfsGist.getFileData(getProject(), vFile); assert 1 == psiGist.getFileData(psiFile) : psiGist.getFileData(psiFile); GistManager.getInstance().invalidateData(); assert 2 == vfsGist.getFileData(getProject(), vFile); assert 2 == psiGist.getFileData(psiFile); }