def METHOD_NAME(self, type, builder):
    if self.parent:
        return self.parent.METHOD_NAME(type, builder)
    self.types_count[type] += 1
    if type not in self.types_builders:
        self.types_builders[type] = builder