private List<FieldElement> getFieldElements(ListingField listingField) {
		TextField textField = (TextField) listingField;
		List<FieldElement> elements = new ArrayList<>();
		int numRows = textField.getNumRows();
		for (int row = 0; row < numRows; row++) {
			FieldElement previousFieldElement = null;
			int numColumns = textField.getNumCols(row);
			for (int col = 0; col < numColumns; col++) {
				FieldElement fieldElement = textField.getFieldElement(row, col);
				if (fieldElement == null) {
					break;
				}
				if (fieldElement != previousFieldElement) {
					elements.add(fieldElement);
					previousFieldElement = fieldElement;
				}
			}
		}
		return elements;
	}
Constructor
@param model the model that the field belongs to.
@param hlProvider the HightLightProvider.
@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/FunctionSignatureFieldFactory.java