private boolean isDocComment(TreeCursor cursor) {
        return cursor.getTree()
                .tokens()
                .findFirst()
                .filter(token -> token.getIdlToken() == IdlToken.DOC_COMMENT)
                .isPresent();
    }
Rewrites invalid documentation comments that don't come directly before a shape or member to be a normal comment.

<p>TODO: This does not remove every possible invalid documentation comment (e.g., doc comments after traits).
smithy-syntax/src/main/java/software/amazon/smithy/syntax/FixBadDocComments.java