private static boolean isDocComment(final PsiElement element, final CodeDocumentationAwareCommenter commenter) {
    if (!(element instanceof PsiComment comment)) return false;
    return commenter.isDocumentationComment(comment);
  }
private static boolean isDocComment(final PsiElement element, final CodeDocumentationAwareCommenter commenter)