@NotNull
  public static CharSequence getParentPathSequence(@NotNull CharSequence path) {
    int end = getParentPathEndOffset(path);
    return end == 0 ? "" : path.subSequence(0, end);
  }
@NotNull
  public static CharSequence getParentPathSequence(@NotNull CharSequence path)