public static void addPyGhidraInterpreter(String interpreterName, File interpreterFile,
			File pypredefDir) throws NoClassDefFoundError, NoSuchMethodError {
		IProgressMonitor monitor = new NullProgressMonitor();
		IInterpreterManager iMan = InterpreterManagersAPI.getPythonInterpreterManager(true);
		IInterpreterInfo[] interpreterInfos = iMan.getInterpreterInfos();
		for (IInterpreterInfo iInfo : interpreterInfos) {
			if (iInfo.getName().equals(interpreterName) &&
				iInfo.getExecutableOrJar().equals(interpreterFile.getAbsolutePath())) {
				return;
			}
		}
		IInterpreterInfo iInfo =
			iMan.createInterpreterInfo(interpreterFile.getAbsolutePath(), monitor, false);
		iInfo.setName(interpreterName);
		if (iInfo instanceof InterpreterInfo ii && pypredefDir != null) {
			ii.addPredefinedCompletionsPath(pypredefDir.getAbsolutePath());
		}
		IInterpreterInfo[] newInterpreterInfos =
			Arrays.copyOf(interpreterInfos, interpreterInfos.length + 1);
		newInterpreterInfos[interpreterInfos.length] = iInfo;
		iMan.setInfos(newInterpreterInfos, null, monitor);
	}
Adds the given PyGhidra interpreter to PyDev.

@param interpreterName The name of the interpreter to add.
@param interpreterFile The interpreter to add.
@param pypredefDir The pypredef directory to use (could be null if not supported)
@throws NoClassDefFoundError if PyDev is not installed or it does not support this operation.
@throws NoSuchMethodError if PyDev is not installed or it does not support this operation.
GhidraBuild/EclipsePlugins/GhidraDev/GhidraDevPlugin/src/main/java/ghidradev/ghidraprojectcreator/utils/PyDevUtilsInternal.java