private static int findMatchingEnd(String input, int start) {
		int depth = 0;
		for (int i = start; i < input.length(); i++) {
			char c = input.charAt(i);
			if (c == '>') {
				if (depth == 0) {
					return i;
				}
				depth--;
			}
			else if (c == '<') {
				depth++;
			}
		}
		return -1;
	}
Notification that options have changed
@param options the options object that has changed values
@param optionName the name of the options that changed
@param oldValue the old value for the option that changed
@param newValue the new value for the option that changed
@return true if the option that changed was a template simplification option
Ghidra/Features/Base/src/main/java/ghidra/app/util/template/TemplateSimplifier.java