private String getContextText(Component focusOwner) {
			DockingWindowManager dwm = tool.getWindowManager();
			Window window = getWindow(dwm, focusOwner);
			if (window instanceof DockingDialog) {
				return "in this dialog";
			}

			if (!isLocalAction) {
				// no need to warn about global/default actions, as that may be annoying when the 
				// keystrokes bubble up to the global level
				return null;
			}

			ComponentProvider provider = context.getComponentProvider();
			if (provider != null) {
				return "in " + provider.getName();
			}

			return "for context";
		}
Keeps only those actions in the list that are owned by the given dialog provider
@param provider the provider
Ghidra/Framework/Docking/src/main/java/docking/action/MultipleKeyAction.java