@Override
	public void actionPerformed(ActionContext context) {

		VTSession session = controller.getSession();
		ToolOptions options = controller.getOptions();


		AutoVersionTrackingTask task = new AutoVersionTrackingTask(session, options);
		task.addTaskListener(new TaskListener() {

			@Override
			public void taskCompleted(Task t) {
				String message = task.getStatusMsg();
				if (message != null) {
					controller.getTool().setStatusInfo(message);
				}
			}

			@Override
			public void taskCancelled(Task t) {
				String message = task.getStatusMsg();
				if (message != null) {
					controller.getTool().setStatusInfo(message);
				}
			}
		});
		TaskLauncher.launch(task);
	}
This action runs the {@link AutoVersionTrackingTask}
Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/actions/AutoVersionTrackingAction.java