public static void patchProfileParams(
    @NotNull String interpreterPath,
    @NotNull PyRemoteSocketToLocalHostProvider remoteSocketProvider,
    @NotNull ParamsGroup profileParams,
    @Nullable File workDirectory,
    @NotNull PathMapper pathMapper
  ) throws RemoteSdkException {
    PyCommandLineStateUtil.remapParameters(interpreterPath, pathMapper, profileParams, workDirectory);

    Pair<String, Integer> socket = remoteSocketProvider.getRemoteSocket(Integer.parseInt(profileParams.getParametersList().get(2)));

    profileParams.getParametersList().set(1, socket.getFirst());
    profileParams.getParametersList().set(2, Integer.toString(socket.getSecond()));
  }
public static void patchProfileParams(
    @NotNull String interpreterPath,
    @NotNull PyRemoteSocketToLocalHostProvider remoteSocketProvider,
    @NotNull ParamsGroup profileParams,
    @Nullable File workDirectory,
    @NotNull PathMapper pathMapper
  )