public long getOffsetOfIndexedElement(DWARFForm form, int index, DWARFCompilationUnit cu)
			throws IOException {
		DWARFIndirectTable table = switch (form) {
			case DW_FORM_addrx:
			case DW_FORM_addrx1:
			case DW_FORM_addrx2:
			case DW_FORM_addrx3:
			case DW_FORM_addrx4:
				yield addressListTable;
			case DW_FORM_rnglistx:
				yield rangeListTable;
			case DW_FORM_loclistx:
				yield locationListTable;
			case DW_FORM_strx:
			case DW_FORM_strx1:
			case DW_FORM_strx2:
			case DW_FORM_strx3:
			case DW_FORM_strx4:
				yield stringsOffsetTable;
			default:
				yield null;
		};
		return table != null ? table.getOffset(index, cu) : -1;
	}
Returns the raw offset of an indexed item.  For DW_FORM_addrx values, the returned value
is not fixed up with Ghidra load offset.

@param form {@link DWARFForm} of the index
@param index int index into a lookup table (see {@link #addressListTable}, 
{@link #locationListTable}, {@link #rangeListTable}, {@link #stringsOffsetTable})
@param cu {@link DWARFCompilationUnit}
@return raw offset of indexed item
@throws IOException if error reading index table
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf/DWARFProgram.java