void () { if (!IndexUpToDateCheckIn.isUpToDateCheckEnabled()) { return; } //assert ApplicationManager.getApplication().isReadAccessAllowed() || ShutDownTracker.isShutdownHookRunning(); myFileBasedIndex.waitUntilIndicesAreInitialized(); if (ApplicationManager.getApplication().isReadAccessAllowed()) { processFilesToUpdateInReadAction(); } else { processFilesInReadActionWithYieldingToWriteAction(); } }