def METHOD_NAME(self, opcode, is_ge_event):
    for id, (name, event) in self.events.items():
        if event.is_ge_event == is_ge_event:
            opcode_specific_name = event.get_name_for_opcode( opcode )
            if opcode_specific_name is not None:
                return (opcode_specific_name, event)
    return None