def METHOD_NAME(self):
    if self.message_index != -1 and self.message_index < len(self.proto_analyzer.messages):
        return self.proto_analyzer.messages[self.message_index]
    else:
        return None