File parentFolderToWrite = new File(parent, parentFolderName);
int idx = -1;
while (true) {
idx++;
boolean filesExist = false;
<BUG>Map<String, List<File>> res = new HashMap<>();
</BUG>
for (List<File> files : foldersToCompare) {
if (files.size() <= idx)
continue;

File parentFolderToWrite = new File(parent, parentFolderName);
int idx = -1;
while (true) {
idx++;
boolean filesExist = false;
Map<String, List<List<File>>> res = new HashMap<>();
for (List<File> files : foldersToCompare) {
if (files.size() <= idx)
continue;
