private static @NotNull Function<String, String> wslPathMapper(@Nullable WSLDistribution distribution) {
    return distribution == null?
      Function.identity() :
      path -> {
        WslPath wslPath = WslPath.parseWindowsUncPath(path);
        return wslPath != null && wslPath.getDistribution().getId().equalsIgnoreCase(distribution.getId())? wslPath.getLinuxPath() : path;
      };
  }
private static @NotNull Function<String, String> wslPathMapper(@Nullable WSLDistribution distribution)