private MnemonicText generateMnemonicSearchText(ListingField mnemonicField,
			ListingField opField) {
		String mnemonic = mnemonicField.getText();
		String operands = opField != null ? opField.getText() : "";

		return new MnemonicText(mnemonic, operands);
	}
Returns the number of fields used in the match.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/searchtext/ListingDisplaySearcher.java