def find_method_ids(self, method_name, class_ref=None):
    dex_class = None
    if (class_ref is not None):
        dex_class = self.find_class(class_ref)
    matches = list()
    method_ids = self.get_method_ids()
    if (not method_ids):
        return matches
    name_idx = self.find_string_idx(method_name)
    if (name_idx <= 0):
        return matches
    for method_id in method_ids:
        if (method_id.name_idx == name_idx):
            if dex_class:
                if (method_id.class_idx != dex_class.class_def.class_idx):
                    continue
            matches.append(method_id)
    return matches
def find_method_ids(self, method_name, class_ref=None):
    dex_class = None
    if (class_ref is not None):
        dex_class = self.find_class(class_ref)
    matches = list()
    method_ids = self.get_method_ids()
    if (not method_ids):
        return matches
    name_idx = self.find_string_idx(method_name)
    if (name_idx <= 0):
        return matches
    for method_id in method_ids:
        if (method_id.name_idx == name_idx):
            if dex_class:
                if (method_id.class_idx != dex_class.class_def.class_idx):
                    continue
            matches.append(method_id)
    return matches