List<String> (@NotNull String shellPath, @NotNull Map<String, String> envs, boolean shellIntegration) { List<String> shellCommand = LocalTerminalDirectRunner.convertShellPathToCommand(shellPath); if (shellIntegration) { ShellStartupOptions options = LocalTerminalDirectRunner.injectShellIntegration(shellCommand, envs); envs.clear(); envs.putAll(options.getEnvVariables()); return Objects.requireNonNull(options.getShellCommand()); } return shellCommand; }