void (@NotNull Collection<? extends TaskData> tasks, @NotNull final Phase phase) { if (tasks.isEmpty()) { return; } addTasks(ContainerUtil.map(tasks, data -> new TaskActivationEntry(data.getOwner(), phase, data.getLinkedExternalProjectPath(), data.getName()))); fireTasksChanged(); }