private static DocTagLocator<PsiDocTag> exceptionLocator(@NotNull String name) {
    return (owner, comment) -> {
      if (comment == null) return null;

      for (PsiDocTag tag : getThrowsTags(comment)) {
        PsiDocTagValue value = tag.getValueElement();
        if (value != null) {
          String text = value.getText();
          if (text != null && areWeakEqual(text, name)) {
            return tag;
          }
        }
      }

      return null;
    };
  }
private static DocTagLocator<PsiDocTag> exceptionLocator(@NotNull String name)