void (final FilePatch patch) { final String beforeName = patch.getBeforeName(); if (beforeName != null) { patch.setBeforeName(myParts[myBeforeIdx].getCurrentPath()); } final String afterName = patch.getAfterName(); if (afterName != null) { patch.setAfterName(myParts[myAfterIdx].getCurrentPath()); } }