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

		if (!enabled || !(obj instanceof Variable)) {
			return null;
		}
		Variable sv = (Variable) obj;
		String comment = sv.getComment();
		String[] comments = StringUtilities.toLines(comment);
		if ((comments != null) && (comments.length > 0)) {
			List<FieldElement> elements = new ArrayList<>(comments.length);
			for (int i = 0; i < comments.length; i++) {
				AttributedString as =
					new AttributedString(comments[i], getColor(sv), getMetrics(sv));
				elements.add(new TextFieldElement(as, i, 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/VariableCommentFieldFactory.java