@Override
	public ListingField getField(ProxyObj<?> proxy, int varWidth) {

		if (!enabled) {
			return null;
		}

		// Exit if this isn't at a function.
		Object obj = proxy.getObject();
		if (!(obj instanceof FunctionDB)) {
			return null;
		}
		FunctionDB function = (FunctionDB) obj;

		// Create the text block we want to show.
		List<FieldElement> textElements = createFunctionTagElements(function);
		if (textElements == null) {
			return null;
		}

		return ListingTextField.createSingleLineTextField(this, proxy,
			new CompositeFieldElement(textElements), startX + varWidth, width, hlProvider);
	}
Constructor

@param model the model that the field belongs to.
@param hlProvider the HightLightStringProvider.
@param displayOptions the Options for display properties.
@param fieldOptions the Options for field specific properties.
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/FunctionTagFieldFactory.java