@Override
  public @NotNull String commandLine(@NotNull Class<? extends ExternalApp> mainClass, boolean useBatchFile) {
    String commandLine = super.commandLine(mainClass, useBatchFile);

    if (myExecutable instanceof GitExecutable.Wsl) {
      // pass ENV variables from git to java command
      StringBuilder sb = new StringBuilder();
      List<String> envs = List.of(
        NativeSshAskPassAppHandler.IJ_SSH_ASK_PASS_HANDLER_ENV,
        NativeSshAskPassAppHandler.IJ_SSH_ASK_PASS_PORT_ENV,
        GitAskPassAppHandler.IJ_ASK_PASS_HANDLER_ENV,
        GitAskPassAppHandler.IJ_ASK_PASS_PORT_ENV,
        GitRebaseEditorAppHandler.IJ_EDITOR_HANDLER_ENV,
        GitRebaseEditorAppHandler.IJ_EDITOR_PORT_ENV);
      sb.append("export WSLENV=");
      sb.append(StringUtil.join(envs, it -> it + "/w", ":"));
      sb.append("\n");

      sb.append(commandLine);
      return sb.toString();
    }
    return commandLine;
  }
@Override
  public @NotNull String commandLine(@NotNull Class<? extends ExternalApp> mainClass, boolean useBatchFile)