def METHOD_NAME(self) -> None:
    Logger.log("i", "New connection received on our single-instance server")
    connection = None #type: Optional[QLocalSocket]
    if self._single_instance_server:
        connection = self._single_instance_server.nextPendingConnection()
    if connection is not None:
        connection.readyRead.connect(lambda c = connection: self.__readCommands(c))