public static void addContentToProgram(PluginTool tool, Program program, FSRL fsrl,
			LoadSpec loadSpec, List<Option> options, TaskMonitor monitor) {

		Objects.requireNonNull(monitor);

		MessageLog messageLog = new MessageLog();
		try (ByteProvider bp = fsService.getByteProvider(fsrl, false, monitor)) {
			loadSpec.getLoader().loadInto(bp, loadSpec, options, messageLog, program, monitor);
			displayResults(tool, program, program.getDomainFile(), messageLog.toString());

			// Optionally echo loader message log to application.log
			if (!Loader.loggingDisabled && messageLog.hasMessages()) {
				Msg.info(ImporterUtilities.class, "Additional info:\n" + messageLog.toString());
			}
		}
		catch (CancelledException e) {
			return;
		}
		catch (IOException e) {
			Msg.showError(ImporterUtilities.class, null, "Error Importing File",
				"Error importing file " + fsrl.getName(), e);
		}

	}
Perform file import and open using optional programManager
@param tool tool to which popup dialogs should be associated
@param programManager program manager to open imported file with or null
@param fsrl import file location
@param destFolder project destination folder
@param loadSpec import {@link LoadSpec}
@param programName program name
@param options import options
@param monitor task monitor
Ghidra/Features/Base/src/main/java/ghidra/plugin/importer/ImporterUtilities.java