def METHOD_NAME(self, mem):
    for cls in self.mem_classes:
        if cls.can_parse(mem):
            return cls
    raise Exception(("Did not find a class for object '%s'."
                     % (mem.get_name())))