def find_package(code_element):
    while code_element is not None and\
            code_element.kind.kind != 'package':
        code_element = code_element.containers.all()[0]

    if code_element is not None:
        return code_element.fqn
    else:
        return None
dataset/ETHPy150Open bartdag/recodoc2/recodoc2/apps/codebase/linker/java_linkers.py/find_package/original