ShellStartupOptions (@NotNull ShellStartupOptions options) { String[] command = ArrayUtil.toStringArray(options.getShellCommand()); Map<String, String> envs = ShellStartupOptionsKt.createEnvVariablesMap(options.getEnvVariables()); for (LocalTerminalCustomizer customizer : LocalTerminalCustomizer.EP_NAME.getExtensions()) { try { command = customizer.customizeCommandAndEnvironment(myProject, options.getWorkingDirectory(), command, envs); } catch (Exception e) { LOG.error("Exception during customization of the terminal session", e); } } return options.builder() .shellCommand(Arrays.asList(command)) .envVariables(envs) .build(); }