private void generate() {
		if (plugin.getProgram() == null || !isVisible()) {
			return;
		}

		ComputeChecksumTask task = new ComputeChecksumTask(this, plugin.getProgram().getMemory(),
			doOnSelection() ? plugin.getSelection() : null);
		new TaskLauncher(task, mainPanel); // this launches the launcher

		if (task.hasError()) {
			setErrorMessage(task.getErrorMessage());
		}
	}
Constructor for the provider.
@param plugin The plugin that created the provider.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/checksums/ComputeChecksumsProvider.java