private static @NotNull String toRelative(@NotNull File target, @NotNull File rootPath) {
    return FileUtilRt.toSystemIndependentName(Path.of(rootPath.getPath()).relativize(Path.of(target.getPath())).toString());
  }
private static @NotNull String toRelative(@NotNull File target, @NotNull File rootPath)