ShutdownToken (@NotNull Project project, @NotNull Disposable testRootDisposable) { ServiceContainerUtil .replaceService(ApplicationManager.getApplication(), FileBasedIndex.class, new EmptyFileBasedIndex(), testRootDisposable); EternalTaskShutdownToken dumbTask = becomeDumb(project); RecursionManager.disableMissedCacheAssertions(testRootDisposable); return new ShutdownToken(dumbTask); }