protected function setState(PaymentSubjectInterface $subject, $state)
    {
        if ($state !== $subject->getPaymentState()) {
            $subject->setPaymentState($state);

            return true;
        }

        return false;
    }