@Override
	protected boolean isEquivalent(DataType dt, DataTypeConflictHandler handler) {
		if (dt == this) {
			return true;
		}
		if (dt == null || !(dt instanceof Enum)) {
			return false;
		}

		Enum enumm = (Enum) dt;
		if (!DataTypeUtilities.equalsIgnoreConflict(getName(), enumm.getName())) {
			return false;
		}

		if (handler != null &&
			ConflictResult.USE_EXISTING == handler.resolveConflict(enumm, this)) {
			// treat this type as equivalent if existing type will be used
			return true;
		}

		if (getLength() != enumm.getLength() || getCount() != enumm.getCount()) {
			return false;
		}

		return isEachValueEquivalent(enumm);
	}
Database implementation for the enumerated data type.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/EnumDB.java