public static ActionTrigger getActionTrigger(String string) {

		Matcher matcher = TO_STRING_PATTERN.matcher(string);
		if (!matcher.matches()) {
			return null;
		}

		String ksString = matcher.group(1);
		String mbString = matcher.group(2);

		KeyStroke ks = null;
		if (!StringUtils.isBlank(ksString)) {
			ks = KeyStroke.getKeyStroke(ksString);
		}

		MouseBinding mb = null;
		if (!StringUtils.isBlank(mbString)) {
			mb = MouseBinding.getMouseBinding(mbString);
		}

		return create(ks, mb);
	}
Creates a new action trigger from the given string.  The string is expected to be the result
of calling {@link #toString()} on an instance of this class.

@param string the string to parse.
@return the new instance or null of the string is invalid.
Ghidra/Framework/Gui/src/main/java/ghidra/framework/options/ActionTrigger.java