static void updateRunConfigurationActions(Project project, ProjectSystemId systemId) {
    ActionManager actionManager = ActionManager.getInstance();
    List<@NonNls String> registeredActions = actionManager.getActionIdList(getActionPrefix(project, null)).stream()
      .filter(a -> actionManager.getAction(a) instanceof ExternalSystemRunConfigurationAction)
      .toList();

    if (registeredActions.isEmpty()) return; // nothing to update

    AbstractExternalSystemTaskConfigurationType configurationType = ExternalSystemUtil.findConfigurationType(systemId);
    if (configurationType == null) return;

    for (String eachAction : registeredActions) {
      actionManager.unregisterAction(eachAction);
    }

    Set<RunnerAndConfigurationSettings> settings = new HashSet<>(
      RunManager.getInstance(project).getConfigurationSettingsList(configurationType));

    final ExternalSystemShortcutsManager shortcutsManager = ExternalProjectsManagerImpl.getInstance(project).getShortcutsManager();
    for (RunnerAndConfigurationSettings configurationSettings : settings) {
      ExternalSystemRunConfigurationAction runConfigurationAction =
        new ExternalSystemRunConfigurationAction(project, configurationSettings);
      String id = runConfigurationAction.getId();
      if (shortcutsManager.hasShortcuts(id)) {
        actionManager.replaceAction(id, runConfigurationAction);
      }
      else {
        actionManager.unregisterAction(id);
      }
    }
  }
static void updateRunConfigurationActions(Project project, ProjectSystemId systemId)