def find_class_def_by_type_index(self, class_idx):
    class_defs = self.get_class_defs()
    for class_def in class_defs:
        if (class_def.class_idx == class_idx):
            return class_def
    return None
def find_class_def_by_type_index(self, class_idx):
    class_defs = self.get_class_defs()
    for class_def in class_defs:
        if (class_def.class_idx == class_idx):
            return class_def
    return None