synchronized void deinitExecutor(@NotNull Executor executor) {
    contextActionIdSet.remove(executor.getContextActionId());

    ActionManager actionManager = ActionManager.getInstance();
    unregisterAction(executor.getId(), RUNNERS_GROUP, idToAction, actionManager);
    if (executor instanceof ExecutorGroup<?>) {
      unregisterAction(executor.getId() + "_delegate", RUNNERS_GROUP, idToAction, actionManager);
    }
    if (isExecutorInMainGroup(executor)) {
      unregisterAction(executor.getContextActionId(), RUN_CONTEXT_EXECUTORS_GROUP, contextActionIdToAction, actionManager);
    }
    else {
      unregisterAction(executor.getContextActionId(), RUN_CONTEXT_GROUP_MORE, contextActionIdToAction, actionManager);
    }
    unregisterAction(newConfigurationContextActionId(executor), RUN_CONTEXT_GROUP_MORE, contextActionIdToAction, actionManager);

    RunToolbarProcess.getProcessesByExecutorId(executor.getId()).forEach(process -> {
      unregisterAction(process.getActionId(), RunToolbarProcess.RUN_WIDGET_GROUP, runWidgetIdToAction, actionManager);
      unregisterAction(process.getMainActionId(), RunToolbarProcess.RUN_WIDGET_MAIN_GROUP, runWidgetIdToAction, actionManager);

      if (executor instanceof ExecutorGroup) {
        unregisterAction(RunToolbarAdditionActionsHolder.getAdditionActionId(process), process.getMoreActionSubGroupName(),
                         runWidgetIdToAction, actionManager);
        unregisterAction(RunToolbarAdditionActionsHolder.getAdditionActionChooserGroupId(process), process.getMoreActionSubGroupName(),
                         runWidgetIdToAction, actionManager);
      }
    });
  }
synchronized void deinitExecutor(@NotNull Executor executor)