private static Shape getChildMemberShapeType(String memberKey, Model model, Shape fromShape) {
        if (fromShape != null) {
            for (MemberShape member : fromShape.members()) {
                if (member.getMemberName().equals(memberKey)) {
                    return model.getShape(member.getTarget()).get();
                }
            }
        }
        return null;
    }
Index containing the full set of {@link TextInstance}s associated with a model.
smithy-model/src/main/java/software/amazon/smithy/model/knowledge/TextIndex.java