void (@NotNull CheckCancelOnlyProgressIndicator indicator, @NotNull IndexingProgressReporter progressReporter) { LOG.assertTrue(myProject.getUserData(INDEX_UPDATE_IN_PROGRESS) != Boolean.TRUE, "Scanning is already in progress"); myProject.putUserData(INDEX_UPDATE_IN_PROGRESS, true); try { performScanningAndIndexing(indicator, progressReporter); } finally { myProject.putUserData(INDEX_UPDATE_IN_PROGRESS, false); } }