static Function<TreeCursor, Stream<Doc>> extractByType(
            TreeType childType,
            Function<TreeCursor, Doc> visitor
    ) {
        return extractor(visitor, byTypeMapper(childType));
    }
Formats various kinds of brackets, dealing with interspersed whitespace and comments.
smithy-syntax/src/main/java/software/amazon/smithy/syntax/BracketFormatter.java