presto-main/src/main/java/io/prestosql/execution/SqlStageExecution.java/SqlStageExecution/getAllTasks
class SqlStageExecution:    public List<RemoteTask> getAllTasks()
    {
        return tasks.values().stream()
                .flatMap(Set::stream)
                .collect(toImmutableList());
    }