Can you try if this works?
```scala
    val taskInfos: mutable.Buffer[(TaskInfo, TaskMetrics)] = new mutable.Buffer)
{
```