void () { String largeFileText = "class Foo { String bar; }" + StringUtil.repeat(" ", FileUtilRt.LARGE_FOR_CONTENT_LOADING + 42); VirtualFile file = myFixture.addFileToProject("Foo.java", largeFileText).getVirtualFile(); int fileId = ((VirtualFileWithId)file).getId(); assertFalse(IndexingStamp.getNontrivialFileIndexedStates(fileId).contains(StubUpdatingIndex.INDEX_ID)); assertFalse(IndexingStamp.getNontrivialFileIndexedStates(fileId).contains(TrigramIndex.INDEX_ID)); assertEmpty(FileBasedIndex.getInstance().getFileData(TrigramIndex.INDEX_ID, file, getProject()).keySet()); assertFalse(IndexingStamp.getNontrivialFileIndexedStates(fileId).contains(StubUpdatingIndex.INDEX_ID)); assertFalse(IndexingStamp.getNontrivialFileIndexedStates(fileId).contains(TrigramIndex.INDEX_ID)); }