private List<FieldElement> getFieldElements(String[] registerStrings) {
		List<FieldElement> elements = new ArrayList<>(registerStrings.length);
		for (int i = 0; i < registerStrings.length; i++) {
			AttributedString str =
				new AttributedString(registerStrings[i], ListingColors.REGISTER, getMetrics());
			elements.add(new TextFieldElement(str, i, 0));
		}
		return elements;
	}
Field to show register values at the function entry point.
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/RegisterFieldFactory.java