public static TopologicalIndex of(Model model) {
        return model.getKnowledge(TopologicalIndex.class, TopologicalIndex::new);
    }
Creates a new {@code TopologicalIndex}.

@param model Model to create the index from.
@return The created (or previously cached) {@code TopologicalIndex}.
smithy-codegen-core/src/main/java/software/amazon/smithy/codegen/core/TopologicalIndex.java