private AddressSet getAddressesFromModel(AddressBasedTableModel<ProgramLocation> model) {
		AddressSet set = new AddressSet();
		int rowCount = model.getRowCount();
		for (int i = 0; i < rowCount; i++) {
			AddressBasedLocation location = (AddressBasedLocation) model.getValueAt(i,
				model.getColumnIndex(AddressTableColumn.class));
			Address addr = location.getAddress();
			set.addRange(addr, addr);
		}
		return set;
	}
Tests for the search text plugin.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/searchtext/SearchTextPlugin1Test.java