Isn't `filesInfos[firstDupeIndex + j]` the same as `dupeList[j]`?