private GhidraScript doGetScriptInstance(ResourceFile scriptFile) {

		Supplier<GhidraScript> scriptSupplier = () -> {
			ConsoleService console = plugin.getConsoleService();
			return getScriptInstance(scriptFile, console);
		};

		if (!Swing.isSwingThread()) {
			return scriptSupplier.get();
		}

		AtomicReference<GhidraScript> ref = new AtomicReference<>();
		TaskBuilder.withRunnable(monitor -> ref.set(scriptSupplier.get()))
				.setTitle("Compiling Script Directory")
				.setLaunchDelay(1000)
				.launchModal();

		return ref.get();
	}
@return non-system bundle paths from the scripting bundle host
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/script/GhidraScriptComponentProvider.java