void (@NotNull QueuedDumbModeTask task) { ProgressIndicator indicator = ProgressIndicatorProvider.getGlobalProgressIndicator(); Logger.getInstance(DumbServiceSyncTaskQueue.class).assertTrue(indicator != null, "There should be global progress indicator"); indicator.pushState(); ((CoreProgressManager)ProgressManager.getInstance()).suppressPrioritizing(); try { task.executeTask(indicator); } finally { ((CoreProgressManager)ProgressManager.getInstance()).restorePrioritizing(); indicator.popState(); } }