@Override
	public String getValueString(int row, int col) {
		ListCellRenderer<? super T> renderer = list.getCellRenderer();
		T value = list.getModel().getElementAt(row);
		if (!(renderer instanceof JLabel)) {
			return value.toString();
		}

		Component c = renderer.getListCellRendererComponent(list, value, row, false, false);
		return ((JLabel) c).getText();
	}
{@link AutoLookup} implementation for {@link GList}s

@param <T> the row type
Ghidra/Framework/Docking/src/main/java/docking/widgets/list/GListAutoLookup.java