def _find_t(e, annotations):
    """
    Given an "E" annotation from an .ann file, find the "T" annotation.

    Because "E" annotations can be nested, the search should be done on deeper
    levels.

    :param e: (string) the "E" annotation we want to find the target of.
    :param annotations: (dict) the dict of annotations.
    :return: the keys of "T" annotations this e annotation points to.
    """
    e = e.split()
    keys = []

    if len(e) > 1:

        targetkeys = [y for y in [x.split(":")[1] for x in e[1:]]]

        for key in targetkeys:
            if key[0] == "E":
                keys.append(annotations['E'][key[1:]].split()[0].split(":")[1])

            if key[0] == "T":
                keys.append(key)

    return keys