void (@NotNull AnActionEvent e) { InspectionResultsView view = getView(e); final InspectionToolWrapper wrapper = getToolWrapper(e); LOG.assertTrue(wrapper != null); final Set<SuppressableInspectionTreeNode> nodesAsSet = getNodesToSuppress(e); Project project = e.getProject(); ApplicationManager.getApplication().invokeLater(() -> { final String templatePresentationText = getTemplatePresentation().getText(); LOG.assertTrue(templatePresentationText != null); final SuppressableInspectionTreeNode[] nodes = nodesAsSet.toArray(new SuppressableInspectionTreeNode[0]); CommandProcessor.getInstance().executeCommand(project, () -> { CommandProcessor.getInstance().markCurrentCommandAsGlobal(project); final SequentialModalProgressTask progressTask = new SequentialModalProgressTask(project, templatePresentationText, true); progressTask.setMinIterationTime(200); progressTask.setTask(new SuppressActionSequentialTask(nodes, mySuppressAction, wrapper)); ProgressManager.getInstance().run(progressTask); }, templatePresentationText, null); final Set<GlobalInspectionContextImpl> globalInspectionContexts = ((InspectionManagerEx)InspectionManager.getInstance(project)).getRunningContexts(); for (GlobalInspectionContextImpl context : globalInspectionContexts) { context.refreshViews(); } view.syncRightPanel(); }); }