private List<FieldElement> breakIntoLines(List<OperandFieldElement> elements) {
		// This method groups all elements between LINE_BREAK elements into composite elements
		// where each composite element will be display on its own line.
		//
		// It does this by collecting elements in the lineElements list until it find a LINE_BREAK
		List<FieldElement> fieldElements = new ArrayList<>();
		List<OperandFieldElement> lineElements = new ArrayList<>();

		for (OperandFieldElement operandFieldElement : elements) {
			if (operandFieldElement == LINE_BREAK) {
				if (!lineElements.isEmpty()) {
					fieldElements.add(new CompositeFieldElement(lineElements));
					lineElements.clear();
				}
			}
			else {
				lineElements.add(operandFieldElement);
			}
		}
		if (!lineElements.isEmpty()) {
			fieldElements.add(new CompositeFieldElement(lineElements));
			lineElements.clear();
		}
		return fieldElements;
	}
Constructor
@param name the name of the field.
@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/OperandFieldHelper.java