@NotNull
  public static String getParentPath(@NotNull String path) {
    int end = getParentPathEndOffset(path);
    return end == 0 ? "" : path.substring(0, end);
  }
@NotNull
  public static String getParentPath(@NotNull String path)