public void closeComponent() {
		if (isTransient) {
			removeFromTool();
			Gui.removeThemeListener(themeListener);
		}
		else {
			setVisible(false);
		}
	}
This is the callback that will happen when the user presses the 'X' button of a provider.
Transient providers will be removed from the tool completely.   Non-transient providers
will merely be hidden.

<P>Subclasses may override this method to prevent a provider from being closed; for
example, if an editor has unsaved changes, then this method could prevent the close from
happening.
Ghidra/Framework/Docking/src/main/java/docking/ComponentProvider.java