private static @Nullable PsiElement targetElement(
    @NotNull Project project,
    @NotNull String link,
    @Nullable PsiElement context
  ) {
    PsiManager manager = PsiManager.getInstance(project);
    DocumentationProvider provider = getProviderFromElement(context);
    PsiElement targetElement = provider.getDocumentationElementForLink(manager, link, context);
    if (targetElement != null) {
      return targetElement;
    }
    return targetFromLanguageProviders(manager, link, context);
  }
private static @Nullable PsiElement targetElement(
    @NotNull Project project,
    @NotNull String link,
    @Nullable PsiElement context
  )