public static String getDittedString(List<SequenceItem> itemList, int totalLength) {
		StringBuilder sb = new StringBuilder();
		int symbolsWritten = 0;
		for (SequenceItem currentItem : itemList) {
			if (currentItem.getIndex() < symbolsWritten) {
				throw new IllegalArgumentException(
					"itemList must be in ascending order of item index");
			}
			while (currentItem.getIndex() > symbolsWritten) {
				sb.append(".");//add a dit
				symbolsWritten++;
			}
			sb.append(currentItem.getSymbol());
			symbolsWritten++;
		}
		if (symbolsWritten > totalLength) {
			throw new IllegalArgumentException("mismatch between itemList and totalLength");
		}
		while (symbolsWritten < totalLength) {
			sb.append(".");
			symbolsWritten++;
		}
		return sb.toString();
	}
Generates a String from a list of {@link SequenceItem}s with each missing {@link SequenceItem} replaces by a "."
@param itemList list of items
@param totalLength length of String to write, including each "."
@return the String
Ghidra/Features/BytePatterns/src/main/java/ghidra/closedpatternmining/SequenceItem.java