public static KeyBindingData update(KeyBindingData kbData, ActionTrigger newTrigger) {
		if (kbData == null) {
			if (newTrigger == null) {
				return null; // no change
			}
			return new KeyBindingData(newTrigger); // trigger added
		}

		if (newTrigger == null) {
			return null; // trigger has been cleared
		}

		ActionTrigger existingTrigger = kbData.getActionTrigger();
		if (existingTrigger.equals(newTrigger)) {
			return kbData;
		}

		return new KeyBindingData(newTrigger);
	}
Returns a key binding data object that matches the given trigger.  If the existing key 
binding object already matches the new trigger, then the existing key binding data is 
returned.  If the new trigger is null, the null will be returned.

@param kbData the existing key binding data; my be null
@param newTrigger the new action trigger; may be null
@return a key binding data based on the new action trigger; may be null
Ghidra/Framework/Docking/src/main/java/docking/action/KeyBindingData.java