private InstructionMetadata getInstructionMetadata(SleighDebugLogger logger,
			CodeUnit codeUnit) {

		// Get the mask/value for the mnemonic; if either is null then we have a problem
		// and should just move on to the next instruction.
		byte[] mask = logger.getInstructionMask();
		byte[] value = logger.getMaskedBytes(mask);

		return createInstructionMetadata(codeUnit, mask, value, true);
	}
Extracts mask/value information from the sleigh logger and stores it in a
{@link InstructionMetadata} object.

@param logger the sleigh debug logger
@param codeUnit the code unit containing the instruction
@return the metadata for the instruction
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/instructionsearch/model/InstructionSearchData.java