private boolean resolveEquateConflicts(Enum editedEnum) {

		Program program = plugin.getProgram();
		if (program == null) {
			// No open program; data type not from the program archive.
			return true;
		}

		EquateTable et = program.getEquateTable();
		Set<String> oldFieldConflicts = new HashSet<>();
		Set<String> conflictingEquates = new HashSet<>();

		for (Equate eq : CollectionUtils.asIterable(et.getEquates())) {
			if (eq.isEnumBased() && originalEnum.getUniversalID().equals(eq.getEnumUUID()) &&
				editedEnum.getName(eq.getValue()) == null) {
				oldFieldConflicts.add(originalEnum.getName(eq.getValue()));
				conflictingEquates.add(eq.getName());
			}
		}
		if (conflictingEquates.isEmpty()) {
			return true;
		}
		switch (showOptionDialog(editedEnum, oldFieldConflicts)) {
			case OptionDialog.OPTION_ONE:
				removeEquates(et, conflictingEquates);
			case OptionDialog.OPTION_TWO:
				return true;
			case OptionDialog.CANCEL_OPTION:
			default:
				return false;
		}
	}
Checks to see if the new changes to the enum will affect equates based off of it.
@param editedEnum the enum to check for conflicts with
@return true if the enum should save its changes; otherwise, false
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/datamgr/editor/EnumEditorProvider.java