private void importModuleSource(File ghidraInstallDir, String projectName, File moduleSourceDir,
			boolean createRunConfig, String runConfigMemory,
			ProjectPythonInterpreter pythonInterpreter, IProgressMonitor monitor)
			throws InvocationTargetException {
		try {
			info("Importing " + projectName + " at " + moduleSourceDir);
			monitor.beginTask("Importing " + projectName, 2);

			GhidraApplicationLayout ghidraLayout = new GhidraApplicationLayout(ghidraInstallDir);
			monitor.worked(1);

			GhidraModuleUtils.importGhidraModuleSource(projectName, moduleSourceDir,
				createRunConfig, runConfigMemory, ghidraLayout, pythonInterpreter, monitor);
			monitor.worked(1);

			info("Finished importing " + projectName);
		}
		catch (IOException | ParseException | CoreException e) {
			throw new InvocationTargetException(e);
		}
		finally {
			monitor.done();
		}
	}
Imports a Ghidra module source directory to a new Ghidra module project.

@param ghidraInstallDir The Ghidra installation directory to use.
@param projectName The name of the project to create.
@param moduleSourceDir The module source directory to import.
@param createRunConfig Whether or not to create a new run configuration for the project.
@param runConfigMemory The run configuration's desired memory.  Could be null.
@param pythonInterpreter The Python interpreter to use.
@param monitor The monitor to use during project creation.
@throws InvocationTargetException if an error occurred during project creation.
GhidraBuild/EclipsePlugins/GhidraDev/GhidraDevPlugin/src/main/java/ghidradev/ghidraprojectcreator/wizards/ImportGhidraModuleSourceWizard.java