private boolean isCellEditing(JTextComponent c) {
		Container parent = c.getParent();
		while (parent != null) {
			if (parent instanceof JTree tree) {
				return tree.isEditing();
			}
			else if (parent instanceof JTable table) {
				return table.isEditing();
			}

			parent = parent.getParent();
		}
		return false;
	}
Used to clear the flag that signals we are in the middle of processing a Ghidra action.
Ghidra/Framework/Docking/src/main/java/docking/KeyBindingOverrideKeyEventDispatcher.java