@Override
  public void collectDocComments(@NotNull PsiFile file,
                                 @NotNull Consumer<? super @NotNull PsiDocCommentBase> sink) {
    if (!(file instanceof GroovyFile groovyFile)) {
      return;
    }
    List<GrDocCommentOwner> owners = PsiTreeUtil.getChildrenOfTypeAsList(groovyFile, GrDocCommentOwner.class);
    List<GrDocComment> comments = PsiTreeUtil.getChildrenOfTypeAsList(groovyFile, GrDocComment.class);
    processDocComments(owners, comments, sink);
  }
@Override
  public void collectDocComments(@NotNull PsiFile file,
                                 @NotNull Consumer<? super @NotNull PsiDocCommentBase> sink)