private boolean checkComponentPath(int[] p1, int[] p2) {
		if (p1 == null) {
			return (p2 == null) || (p2.length == 0);
		}
		if (p2 == null) {
			return p1.length == 0;
		}
		// ok, neither are null
		if (p1.length != p2.length) {
			return false;
		}
		for (int i = 0; i < p1.length; i++) {
			if (p1[i] != p2[i]) {
				return false;
			}
		}
		return true;
	}
Get the program location for the given program and save state object.

@param program the program for the location
@param saveState the state to restore
@return the restored program location
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/ProgramLocation.java