static void patchDebugParams(
    @NotNull String helpersPath,
    @NotNull PyRemoteSocketToLocalHostProvider remoteSocketProvider,
    @NotNull ParamsGroup debugParams
  ) throws RemoteSdkException {
    debugParams.getParametersList().set(0, RemoteFile.createRemoteFile(helpersPath, PyDebugRunner.DEBUGGER_MAIN).getPath());

    int port = Integer.parseInt(debugParams.getParametersList().get(PyDebugRunner.findIndex(debugParams.getParameters(),PyDebugRunner.PORT_PARAM)));
    Pair<String, Integer> socket = remoteSocketProvider.getRemoteSocket(port);

    int clientParamIndex = PyDebugRunner.findIndex(debugParams.getParameters(), PyDebugRunner.CLIENT_PARAM);
    if (clientParamIndex != -1) {
      debugParams.getParametersList().set(clientParamIndex, socket.getFirst());
    }

    debugParams.getParametersList()
      .set(PyDebugRunner.findIndex(debugParams.getParameters(), PyDebugRunner.PORT_PARAM), Integer.toString(socket.getSecond()));
  }
static void patchDebugParams(
    @NotNull String helpersPath,
    @NotNull PyRemoteSocketToLocalHostProvider remoteSocketProvider,
    @NotNull ParamsGroup debugParams
  )