David Burr Gerrard said this quote

Thinking, like other drugs, can be a useful distraction from pain, as long as it's managed and doesn't become an addiction.