private DittedBitSequence getDittedBitSequenceNibble(String minedString) {
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < minedString.length(); i++) {
			if (minedString.charAt(i) == '.') {
				sb.append("....");
			}
			else {
				String nibble = minedString.substring(i, i + 1);
				String binaryString = Integer.toBinaryString(Integer.parseInt(nibble, 16));
				int missing = 4 - binaryString.length();
				switch (missing) {
					case 1:
						binaryString = "0" + binaryString;
						break;
					case 2:
						binaryString = "00" + binaryString;
						break;
					case 3:
						binaryString = "000" + binaryString;
						break;
					default:
						break;
				}
				sb.append(binaryString);
			}
		}
		return new DittedBitSequence(sb.toString(), false);
	}
Objects in this class are used to display a closed pattern found by the 
pattern miner.
Ghidra/Features/BytePatterns/src/main/java/ghidra/bitpatterns/gui/ClosedPatternRowObject.java