def find_encoded_method_by_code_off(self, code_off):
    for encoded_method in self.class_data.direct_methods:
        if (encoded_method.code_off == code_off):
            return encoded_method
    for encoded_method in self.class_data.virtual_methods:
        if (encoded_method.code_off == code_off):
            return encoded_method
    return None
def find_encoded_method_by_code_off(self, code_off):
    for encoded_method in self.class_data.direct_methods:
        if (encoded_method.code_off == code_off):
            return encoded_method
    for encoded_method in self.class_data.virtual_methods:
        if (encoded_method.code_off == code_off):
            return encoded_method
    return None