void (RootEntry root, boolean warnOnFileNotFound) { String parentPath = Paths.getParentOf(myPath); Entry parent = root.findEntry(parentPath); if (parent == null) { cannotRevert(parentPath, warnOnFileNotFound); return; } parent.addChild(myDeletedEntry.copy()); }