@Override
	public ProgramSelection getProgramSelection(int[] modelRows) {
		AddressSet ranges = new AddressSet();
		for (AddressRangeInfo rangeInfo : getRowObjects(modelRows)) {
			ranges.addRange(program, rangeInfo.min(), rangeInfo.max());
		}
		return new ProgramSelection(ranges);
	}
A {@link GhidraProgramTableModel} for displaying tables in which one row corresponds
to an {@link AddressRange}
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/codebrowser/AddressRangeTableModel.java