private void selectBestProvider() {
		if (lastSelectedProviderDescription != null) {
			for (GhidraScriptProvider provider : providers) {
				if (provider.getDescription().equals(lastSelectedProviderDescription)) {
					listPanel.setSelectedValue(provider);
					return;
				}
			}
		}

		for (GhidraScriptProvider provider : providers) {
			if ("Java".equals(provider.getDescription())) {
				listPanel.setSelectedValue(provider);
				return;
			}
		}
	}
For testing...

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