def METHOD_NAME(self):
    """Check if message is connecting to lifelines on communication
    diagram."""
    c1 = self._connections.get_connection(self.head)
    c2 = self._connections.get_connection(self.tail)
    return (
        c1
        and isinstance(c1.connected, LifelineItem)
        and not c1.connected.lifetime.visible
        and c2
        and isinstance(c2.connected, LifelineItem)
        and not c2.connected.lifetime.visible
    )