Yes, it should change the internal state too, so the function can be `_collapseFileResults($row, collapse, fullPath)`.