String (ProjectSystemId systemId, String projectPath, String taskName) { List<String> result = new ArrayList<>(); final ExternalProjectsStateProvider stateProvider = ExternalProjectsManagerImpl.getInstance(myProject).getStateProvider(); final TaskActivationState taskActivationState = stateProvider.getTasksActivation(systemId, projectPath); if (taskActivationState == null) { return null; } for (Phase phase : Phase.values()) { if (taskActivationState.getTasks(phase).contains(taskName)) { result.add(phase.toString()); } } return StringUtil.join(result, ", "); }