private static String adaptPathForExecution(@NotNull String systemDependentPath,
                                              @Nullable WSLDistribution wslDistribution) {
    if (wslDistribution != null) {
      return wslDistribution.getWslPath(systemDependentPath);
    } else {
      if (Platform.current() != Platform.WINDOWS) return ShStringUtil.quote(systemDependentPath);
      String escapedPath = StringUtil.escapeQuotes(systemDependentPath);
      return StringUtil.containsWhitespaces(systemDependentPath) ? StringUtil.QUOTER.apply(escapedPath) : escapedPath;
    }
  }
private static String adaptPathForExecution(@NotNull String systemDependentPath,
                                              @Nullable WSLDistribution wslDistribution)