

def get_code_element(self, scode_reference, code_elements, method_info, log):
    log.reset_variables()
    return_code_element = None
    if (code_elements is None):
        code_elements = []
    potentials = list(code_elements)
    size = len(filter_results)
    filter_results = []
    method_name = method_info.method_name
    params = method_info.type_params
    fqn_container = method_info.fqn_container
    for afilter in self.method_filters:
        finput = filters.FilterInput(scode_reference, potentials, method_name, log, fqn_container, params, filter_results)
        result = afilter.filter(finput)
        potentials = result.potentials
        filter_results.append(result)
    log.custom_filtered = filters.custom_filtered(filter_results)
    potentials_size = len(potentials)
    if (potentials_size == 1):
        return_code_element = potentials[0]
    elif (potentials_size > 1):
        return_code_element = potentials[0]
        log.arbitrary = True
    log.log_method(method_info, scode_reference, return_code_element, potentials, size, filter_results, code_elements)
    return (return_code_element, potentials)

dataset/ETHPy150Open bartdag/recodoc2/recodoc2/apps/codebase/linker/java_linkers.py JavaMethodLinker.get_code_element/VarMisuse@54/77 `code_elements`->`filter_results`