protected void doImport(DomainFolder folder, List<File> files, PluginTool tool,
			Component component) {

		Swing.runLater(() -> {
			FileImporterService im = tool.getService(FileImporterService.class);
			if (im == null) {
				Msg.showError(AbstractFileListFlavorHandler.class, component, "Could Not Import",
					"Could not find importer service.");
				return;
			}

			if (files.size() == 1 && files.get(0).isFile()) {
				im.importFile(folder, files.get(0));
			}
			else {
				im.importFiles(folder, files);
			}
		});
	}
Do import when destination folder has been specified (e.g., data tree folder node).
@param folder destination folder (if null root folder will be assumed)
@param files files to be imported
@param tool target tool (active/current project assumed)
@param component parent component for popup messages
Ghidra/Features/Base/src/main/java/ghidra/framework/main/datatree/AbstractFileListFlavorHandler.java