private void setSelectionInTool(PluginTool tool, AddressSetView addressSet) {
		ProgramSelection programSelection = new ProgramSelection(addressSet);
		CodeViewerService service = tool.getService(CodeViewerService.class);
		if (service == null) {
			return;
		}
		service.getNavigatable().setSelection(programSelection);
	}
Sets the address set to be the selection in the tool.

@param tool
           the tool
@param set
           the addressSet to use for the selection
Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/plugin/VTSubToolManager.java