public boolean isEquivalent(TOCItem other) {
		if (this == other) {
			return true;
		}
		if (other == null) {
			return false;
		}
		if (getClass() != other.getClass()) {
			return false;
		}

		if (IDAttribute == null) {
			if (other.IDAttribute != null) {
				return false;
			}
		}
		else if (!IDAttribute.equals(other.IDAttribute)) {
			return false;
		}
		if (sortPreference == null) {
			if (other.sortPreference != null) {
				return false;
			}
		}
		else if (!sortPreference.equals(other.sortPreference)) {
			return false;
		}

		if (targetAttribute == null) {
			if (other.targetAttribute != null) {
				return false;
			}
		}
		else if (!targetAttribute.equals(other.targetAttribute)) {
			return false;
		}
		if (textAttribute == null) {
			if (other.textAttribute != null) {
				return false;
			}
		}
		else if (!textAttribute.equals(other.textAttribute)) {
			return false;
		}
		return true;
	}
True if the two items are the same, except that they come from a different source file.
@param other the other item
@return true if equivalent
Ghidra/Framework/Help/src/main/java/help/validator/model/TOCItem.java