private static @NotNull String normalizePath(@NotNull String path) {
      if (preserveSlashes(path)) return path;
      return StringUtil.trimEnd(FileUtilRt.toSystemDependentName(path), File.separatorChar);
    }
private static @NotNull String normalizePath(@NotNull String path)