public Program importFile(File file) throws Exception {
		try {
			LoadResults<Program> loadResults = AutoImporter.importByUsingBestGuess(file,
				state.getProject(), null, this, new MessageLog(), monitor);
			loadResults.releaseNonPrimary(this);
			return loadResults.getPrimaryDomainObject();
		}
		catch (LoadException e) {
			return null;
		}
	}
Attempts to import the specified file. It attempts to detect the format and
automatically import the file. If the format is unable to be determined, then
null is returned.  For more control over the import process, {@link AutoImporter} may be
directly called.
<p>
NOTE: The returned {@link Program} is not automatically saved into the current project.
<p>
NOTE: It is the responsibility of the script that calls this method to release the returned
{@link Program} with {@link DomainObject#release(Object consumer)} when it is no longer
needed, where <code>consumer</code> is <code>this</code>.

@param file the file to import
@return the newly imported program, or null
@throws Exception if any exceptions occur while importing
Ghidra/Features/Base/src/main/java/ghidra/app/script/GhidraScript.java