GhidraScriptProvider getSelectedProvider() {
		if (providers.size() == 1) {
			return providers.get(0);
		}

		selectBestProvider();

		DockingWindowManager.showDialog(parent, this);
		if (wasCancelled) {
			return null;
		}
		return listPanel.getSelectedValue();
	}
For testing...

@param provider the provider selection
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/script/PickProviderDialog.java