@Override
    public boolean equals(Object obj) {

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

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

		GroupView gs = (GroupView)obj;

		if (paths.length != gs.paths.length) {
			return false;
		}
		for (int i=0; i<paths.length; i++) {
			if (!paths[i].equals(gs.paths[i])) {
				return false;
			}
		}
		return true;
    }
Test if the given object is equal to this.
Ghidra/Features/Base/src/main/java/ghidra/program/util/GroupView.java