private String getProgramLocationPreview() {

		if (location instanceof FunctionSignatureFieldLocation) {
			return ((FunctionSignatureFieldLocation) location).getSignature();
		}

		if (location instanceof FunctionRepeatableCommentFieldLocation) {
			return getFunctionCommentPreview((FunctionRepeatableCommentFieldLocation) location);
		}

		if (location instanceof VariableLocation) {
			return getVariablePreview((VariableLocation) location);
		}

		if (location instanceof LabelFieldLocation) {
			return ((LabelFieldLocation) location).getName();
		}

		if ((location instanceof MnemonicFieldLocation) ||
			(location instanceof OperandFieldLocation)) {
			return getCodeUnitPreview(formatter);
		}

		if (location instanceof CommentFieldLocation) {
			return getCommentPreview((CommentFieldLocation) location);
		}

		return null;
	}
Get the preview as HTML for the code unit at or containing the address associated with this cell's row.

@return the preview string.
Ghidra/Features/Base/src/main/java/ghidra/util/table/PreviewTableCellData.java