private boolean isMyDataType(DataType myDataType, DataTypeManager dtm,
				DataTypePath otherPath) {
			if (myDataType == null) {
				return false; // must have been deleted and we have not yet processed the event
			}

			DataType dataType = dtm.getDataType(otherPath);
			if (dataType == null) {
				//
				// Unusual Code Alert!:
				// Must have been deleted and we have not yet processed the event...return true
				// here to signal that the types are the same so that clients will continue the
				// updating process.  The types may not really be the same, but the fallout is
				// only that there will be more updating than is necessary.
				//
				return true;
			}

			return myDataType == dataType;
		}
Prompts the user if the editor has unsaved changes. Saves the changes if
the user indicates to do so.
@return CANCEL (0) if the user canceled;
  SAVE (1) if the user saved changes;
  NO_SAVE (2) if the user did not save changes or no save was required;
  ERROR (3) if there was an error when the changes were applied.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/datamgr/editor/EnumEditorProvider.java