@Override
	public void importFile(DomainFolder folder, File file) {

		if (folder == null) {
			folder = tool.getProject().getProjectData().getRootFolder();
		}

		if (handleSimpleDBUnpack(folder, file)) {
			return;
		}

		FSRL fsrl = fsService().getLocalFSRL(file);
		ProgramManager manager = tool.getService(ProgramManager.class);
		ImporterUtilities.showImportDialog(tool, manager, fsrl, folder, null);
	}
A {@link Plugin} that supplies menu items and tasks to import files into Ghidra.
Ghidra/Features/Base/src/main/java/ghidra/plugin/importer/ImporterPlugin.java