@Override
    protected @NotNull TargetedCommandLineBuilder createTargetedCommandLine(@NotNull TargetEnvironmentRequest request)
      throws ExecutionException {
      if (request instanceof LocalTargetEnvironmentRequest) {
        TargetedCommandLineBuilder commandLineBuilder = super.createTargetedCommandLine(request);
        if (emulateTerminal()) {
          commandLineBuilder.setPtyOptions(getLocalTargetPtyOptions());
        }
        return commandLineBuilder;
      }
      if (request.getConfiguration() == null) {
        throw new CantRunException(RunnerBundle.message("cannot.find.target.environment.configuration"));
      }
      var settings = new MavenSettings(myConfiguration.getProject());
      settings.setRunnerParameters(myConfiguration.getRunnerParameters());
      settings.setGeneralSettings(myConfiguration.getGeneralSettings());
      settings.setRunnerSettings(myConfiguration.getRunnerSettings());
      return new MavenCommandLineSetup(myConfiguration.getProject(), myConfiguration.getName(), request)
        .setupCommandLine(settings)
        .getCommandLine();
    }
@Override
    protected @NotNull TargetedCommandLineBuilder createTargetedCommandLine(@NotNull TargetEnvironmentRequest request)