private DomainObject getVersionedObject(DomainFile file, int versionNumber) {
		GetDomainObjectTask task = new GetDomainObjectTask(this, file, versionNumber);
		plugin.getTool().execute(task, 250);
		return task.getDomainObject();
	}
Connect the tools in both directions.
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/ToolButton.java