We have similar code in `WorkingSetView _addDirectoryNamesToWorkingTreeFiles` to handle same-named files in different paths.