private static int getModelRow(int viewRow, TableModel model) {
		if (model instanceof RowObjectFilterModel<?>) {
			RowObjectFilterModel<?> threadedModel = (RowObjectFilterModel<?>) model;
			return threadedModel.getModelRow(viewRow);
		}
		return viewRow; // assume no filtering, as we don't know how to handle it anyway
	}
Attempts to get the text value for the cell so that the data will match what the user sees.
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/GTableToCSV.java