static boolean equivalentBookmarkArrays(Program pgm1, Program pgm2, Bookmark[] bookmarks1,
			Bookmark[] bookmarks2) {
		if (bookmarks1 == bookmarks2) {
			return true;
		}
		if (bookmarks1 == null || bookmarks2 == null) {
			return false;
		}

		int length = bookmarks1.length;
		if (bookmarks2.length != length) {
			return false;
		}

		for (int i = 0; i < length; i++) {
			Bookmark bookmark1 = bookmarks1[i];
			Bookmark bookmark2 = bookmarks2[i];
			if (!(bookmark1 == null ? bookmark2 == null
					: equivalentBookmarks(pgm1, pgm2, bookmark1, bookmark2))) {
				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