presto-main/src/main/java/io/prestosql/execution/TaskId.java/TaskId/getStageId
class TaskId:    public StageId getStageId()
    {
        List<String> ids = QueryId.parseDottedId(fullId, 3, "taskId");
        return StageId.valueOf(ids.subList(0, 2));
    }