@Override
	public ListingField getField(ProxyObj<?> proxy, int varWidth) {
		Object obj = proxy.getObject();

		if (!enabled || !(obj instanceof CodeUnit)) {
			return null;
		}

		CodeUnit cu = (CodeUnit) obj;
		Integer n = getSpaces(cu);
		if (n != null) {
			if (n == 0) {
				cu.removeProperty(CodeUnit.SPACE_PROPERTY);
				return null;
			}
			else if (n < 0) {
				n = -n;
			}

			List<FieldElement> elements = new ArrayList<>(n);
			AttributedString as = new AttributedString("", Colors.FOREGROUND, getMetrics());
			for (int i = 0; i < n; i++) {
				elements.add(new TextFieldElement(as, 0, 0));
			}

			return ListingTextField.createMultilineTextField(this, proxy, elements,
				startX + varWidth, width, hlProvider);

		}
		return null;
	}
@see ghidra.app.util.viewer.field.FieldFactory#getField(ProxyObj, int)
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/SpaceFieldFactory.java