private static JavadocTagInfo @NotNull [] getTagInfos(PsiElement position, PsiDocComment comment) {
    PsiElement parent = comment.getContext();
    if (parent instanceof PsiJavaFile file && PsiPackage.PACKAGE_INFO_FILE.equals(file.getName())) {
      final String packageName = file.getPackageName();
      parent = JavaPsiFacade.getInstance(position.getProject()).findPackage(packageName);
    }
    return JavadocManager.getInstance(position.getProject()).getTagInfos(parent);
  }
private static JavadocTagInfo @NotNull [] getTagInfos(PsiElement position, PsiDocComment comment)