@Override
    public boolean equals(Object obj) {

		if (obj == null) {
			return false;
		}
		if (this == obj) {
			return true;
		}

		if (getClass() != obj.getClass()) {
			return false;
		}

		GroupPath p = (GroupPath)obj;

		if (groupNames.length != p.groupNames.length) {
			return false;
		}
		for (int i=0; i<groupNames.length; i++) {
			if (!groupNames[i].equals(p.groupNames[i])) {
				return false;
			}
		}
		return true;
    }
@see java.lang.Object#equals(Object)
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/GroupPath.java