void () { for (int i = 0; i < getElementCount(); i++) { T element = getElements().get(i); if (myShouldRename[i]) { myRenamer.setRename(element, myNewNames[i]); } else { myRenamer.doNotRename(element); } } }