public static ResolvedTopicIndex of(Model model) {
        return model.getKnowledge(ResolvedTopicIndex.class, ResolvedTopicIndex::new);
    }
Computes all of the MQTT {@link TopicBinding}s in a model.

<p>This index is useful for things like finding the payload of an MQTT
topic on an operation and grabbing the event stream information of a
subscribe operation.

<pre>
{@code
ResolvedTopicIndex resolvedIndex = ResolvedTopicIndex.of(model);
TopicBinding<PublishTrait> binding = resolvedIndex.getPublishBinding(myOperation).get();

assert(binding.getTopic() instanceOf Topic);
assert(binding.getMqttTrait() instanceOf PublishTrait);
System.out.println(binding.getPayloadShape());
}
</pre>

@see TopicBinding
smithy-mqtt-traits/src/main/java/software/amazon/smithy/mqtt/traits/ResolvedTopicIndex.java