public void maskOperandsByType(int operandType) {
		for (InstructionMetadata instruction : instructions) {
			List<OperandMetadata> operands = instruction.getOperands();
			for (OperandMetadata operand : operands) {

				switch (operandType) {
					case OperandType.SCALAR:
						if (OperandType.isScalar(operand.getOpType())) {
							operand.setMasked(true);
						}
						break;
					case OperandType.ADDRESS:
						if (OperandType.isAddress(operand.getOpType())) {
							operand.setMasked(true);
						}
				}
			}
		}
	}
Masks all operands in the instruction set that have the given type.

@param operandType {@link OperandType}
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/instructionsearch/model/InstructionSearchData.java