@staticmethod
def _consolidate(visited_tuples):
    """
        Reverse and remove multiple, empty records.

        Example::

            >>> _consolidate([
            ... ('a/b/', None),
            ... ('a/b/', 'F1'),
            ... ('a/b/', 'F2'),
            ... ('a/b/', None),
            ... ('c/c/', None),
            ... ('c/c/', None),
            ... ('d/',   'F1'),
            ... ('d/',   None),
            ... ('c/c/', 'FF')])
            [('a/b/',   ['F1', 'F2']),
             ('c/c/',   []),
             ('d/',     ['F1']),
             ('c/c/',   ['FF'])]
        """
    consolidated = []
    prev = None
    for b, f in visited_tuples:
        if not prev:
            prev = b, []
        elif prev[0] != b:
            consolidated.append(prev)
            prev = b, []
        if f:
            prev[1].append(f)
    if prev:
        consolidated.append(prev)
    return consolidated
