def get_context_return_types_value(context_id, source, filter_func, codebase):
    query = CodeElementLink.objects.\
            filter(code_element__kind__kind='method').\
            filter(index=0).\
            filter(code_element__codebase=codebase).\
            filter(code_reference__source=source)
    #print(query.count())
    query = filter_func(query, context_id)
    #print(query.count())

    return_types = []
    fqn_set = set()

    for link in query.all():
        code_element = link.code_element.methodelement
        return_fqn = code_element.return_fqn
        if fqn_set not in return_fqn:
            fqn_set.add(return_fqn)
            try:
                return_element = CodeElement.objects.\
                        filter(codebase=codebase).\
                        filter(fqn=return_fqn).all()[0]
                return_types.append(return_element)
            except Exception:
                pass

    return return_types
dataset/ETHPy150Open bartdag/recodoc2/recodoc2/apps/codebase/linker/context.py/get_context_return_types_value/swapped operands of `not in`