void (Project project, Collection<? extends DataNode<TaskData>> taskData) { ActionManager actionManager = ActionManager.getInstance(); if (actionManager != null) { Set<String> externalProjectPaths = new HashSet<>(); for (DataNode<TaskData> node : taskData) { externalProjectPaths.add(node.getData().getLinkedExternalProjectPath()); } for (String externalProjectPath : externalProjectPaths) { for (String eachAction : actionManager.getActionIdList(getActionPrefix(project, externalProjectPath))) { AnAction action = actionManager.getAction(eachAction); if (!(action instanceof ExternalSystemRunConfigurationAction)) { actionManager.unregisterAction(eachAction); } } } } }