static boolean equivalentVariableArrays(Variable[] vars1, Variable[] vars2,
			boolean checkParamStorage) {
		if (vars1 == vars2) {
			return true;
		}
		if (vars1 == null || vars2 == null) {
			return false;
		}

		int length = vars1.length;
		if (vars2.length != length) {
			return false;
		}

		for (int i = 0; i < length; i++) {
			if ((vars1[i] instanceof Parameter) != (vars2[i] instanceof Parameter)) {
				return false;
			}
			boolean checkStorage = !(vars1[i] instanceof Parameter) || checkParamStorage;
			if (!(vars1[i] == null ? vars2[i] == null
					: equivalentVariables(vars1[i], vars2[i], checkStorage))) {
				return false;
			}
		}

		return true;
	}
Compares an array of bookmarks from program1 with an array of bookmarks from program2 to see if they are equivalent.
@param pgm1 program1
@param bookmarks1 program1 array of bookmarks
@param pgm2 program2
@param bookmarks2 program2 array of bookmarks
@return true if the arrays of bookmarks are equal.
Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramDiff.java