public static <T> Collector<T, Map<StringNode, Node>, ObjectNode> collectStringKeys(
            Function<T, String> keyMapper,
            Function<T, ToNode> valueMapper
    ) {
        return collect(entry -> from(keyMapper.apply(entry)), valueMapper);
    }
Creates a collector that creates an ObjectNode.

@param keyMapper Key mapping function that returns a string.
@param valueMapper Value mapping function that returns a ToNode.
@param <T> Type being collected over (e.g., Map.Entry, Pair, etc.).
@return Returns the created collector.
smithy-model/src/main/java/software/amazon/smithy/model/node/ObjectNode.java