Set<Task> (@NotNull Project project) { Set<Task> result = new LinkedHashSet<>(getProjectTasks(project)); for (Project subProject : project.getSubprojects()) { result.addAll(getProjectTasks(subProject)); } return result; }