def DefaultLeafVisit(self, leaf):
    if leaf.type in _WHITESPACE_TOKENS:
      self._StartNewLine()
    elif leaf.type != grammar_token.COMMENT or leaf.value.strip():
      if leaf.value == ';':
        # Split up multiple statements on one line.
        self._StartNewLine()
      else:
        # Add non-whitespace tokens and comments that aren't empty.
        self._cur_unwrapped_line.AppendNode(leaf)
Given a list of states return which entities (rooms, users, servers)
dataset/ETHPy150Open google/yapf/yapf/yapflib/pytree_unwrapper.py/PyTreeUnwrapper.DefaultLeafVisit--crossover with--dataset/ETHPy150Open matrix-org/synapse/synapse/handlers/presence.py/PresenceHandler._get_interested_parties