private boolean compareListData(ListModel<?> modelOne, ListModel<?> modelTwo) {
		boolean isSame = false;

		if (modelOne.getSize() == modelTwo.getSize()) {
			// so far, so good...innocent until proven guilty
			isSame = true;

			for (int i = 0; (i < modelOne.getSize()) && isSame; i++) {
				if (modelOne.getElementAt(i) == null) {
					isSame = (modelTwo.getElementAt(i) == null);
				}
				else {
					isSame = (modelOne.getElementAt(i).equals(modelTwo.getElementAt(i)));
				}
			}
		}

		return isSame;
	}
Compares the two given lists based upon the contents being the same
in terms of order and by comparing via the
{@link Object#equals(Object)} method.

@param  modelOne The first list contents to compare
@param  modelTwo The second list contents to compare
@return True if both lists hold the equal contents in the same order.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/disassembler/DisassembledViewPluginTest.java