@Override
	public PluginTool launchTool(String toolName, Collection<DomainFile> domainFiles) {
		ToolTemplate template = findToolChestToolTemplate(toolName);
		if (template == null) {
			return null;
		}
		return defaultLaunch(template, t -> {
			if (CollectionUtils.isBlank(domainFiles)) {
				return true;
			}
			return t.acceptDomainFiles(domainFiles.toArray(DomainFile[]::new));
		});
	}
Implementation of service used to manipulate tools.
Ghidra/Framework/Project/src/main/java/ghidra/framework/project/tool/ToolServicesImpl.java