private static void restoreOriginalBodies(Map<Function, AddressSetView> bodyChangeMap) {
		Set<Map.Entry<Function, AddressSetView>> entries = bodyChangeMap.entrySet();
		for (Entry<Function, AddressSetView> entry : entries) {
			try {
				entry.getKey().setBody(entry.getValue());
			}
			catch (OverlappingFunctionException e) {
				// This shouldn't happen.
				e.printStackTrace();
			}
		}
	}
using the body map revert any changes made to function bodies

@param bodyChangeMap map of functions to original bodies
Ghidra/Features/Base/src/main/java/ghidra/app/cmd/function/CreateFunctionCmd.java