boolean (@NotNull Collection<String> modules, @NotNull ExternalProjectsStateProvider.TasksActivation activation) { final AbstractExternalSystemSettings systemSettings = ExternalSystemApiUtil.getSettings(myProject, activation.systemId); final String rootProjectPath = getRootProjectPath(systemSettings, activation.projectPath); final List<String> rootPath = ContainerUtil.mapNotNull(modules, path -> getRootProjectPath(systemSettings, path)); return rootPath.contains(rootProjectPath); }