private static String getIdentifier(Tree tree) {
		if (tree.getType() != SleighParser.IDENTIFIER) {
			throw new MismatchException();
		}
		return tree.getText();
	}
An exception indicating the parse tree did not match a pattern
Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/SleighUtils.java