@Internal
  public static @Nullable Pair<@NotNull PsiElement, @Nullable String> targetAndRef(
    @NotNull Project project,
    @NotNull String url,
    @Nullable PsiElement context
  ) {
    Pair<String, String> linkAndRef = parseUrl(url);
    if (linkAndRef == null) {
      return null;
    }
    PsiElement targetElement = targetElement(project, linkAndRef.first, context);
    if (targetElement != null) {
      return Pair.create(targetElement, linkAndRef.second);
    }
    return null;
  }
@Internal
  public static @Nullable Pair<@NotNull PsiElement, @Nullable String> targetAndRef(
    @NotNull Project project,
    @NotNull String url,
    @Nullable PsiElement context
  )