public static @Nullable @NlsSafe String extractFileName(@Nullable String urlOrPath) {
    if (urlOrPath == null) return null;
    int index = urlOrPath.lastIndexOf(VfsUtilCore.VFS_SEPARATOR_CHAR);
    return index < 0 ? null : urlOrPath.substring(index+1);
  }
public static @Nullable @NlsSafe String extractFileName(@Nullable String urlOrPath)