Karen Horney said this quote

It is naturally a sign of inner liberation when a patient can squarely recognize his difficulties and take them with a grain of humor. But some patients at the beginning of analysis make incessant jokes about themselves, or exaggerate their difficulties in so dramatic a way that they will appear funny, while they are at the same time absurdly sensitive to any criticism. In these instances humor is used to take the sting out of an otherwise unbearable shame.