These 2 lines are almost the sames as lines (454-455), only the element changes. So I was thinking that maybe we could have a function: `_collapseFileResults($row, collapse: boolean)` that could collapse, or uncollapse the results depending on the boolean parameter. Not sure if we should also change the collapse value of the results object in this function.