I kept saying no and no and no to all of the negative mental solicitations while continuing to pray. I asked a friend to support me in that prayerful work, and the coughing was soon over.
I decided to put the problem aside and spend some time thanking God for His perfect creation and for His allness, goodness, omnipresence, and omnipotence.