public static @Nullable String getParentDir(@Nullable String url) {
    if (url == null) return null;
    int index = url.lastIndexOf(VfsUtilCore.VFS_SEPARATOR_CHAR);
    return index < 0 ? null : url.substring(0, index);
  }
public static @Nullable String getParentDir(@Nullable String url)