@Nullable
  public static PsiDirectory findLongestExistingDirectory(@NotNull PsiManager manager, @NotNull String path) {
    Pair<PsiDirectory, String> pair = findLongestExistingDirectoryAndItsPath(manager, path);
    return pair != null ? pair.first : null;
  }
@Nullable
  public static PsiDirectory findLongestExistingDirectory(@NotNull PsiManager manager, @NotNull String path)