def METHOD_NAME(self):
    """Disposes of the contents of an editor."""
    while self._connections_to_remove:
        signal, handler = self._connections_to_remove.pop()
        signal.disconnect(handler)
    super().METHOD_NAME()