void (RootEntry root, boolean warnOnFileNotFound) { Entry e = root.findEntry(myPath); if (e == null) { cannotRevert(myPath, warnOnFileNotFound); return; } removeEntry(e); Entry oldParent = root.findEntry(getOldParent()); if (oldParent == null) { cannotRevert(getOldParent(), warnOnFileNotFound); return; } oldParent.addChild(e); }