Many studies have demonstrated that the brain can modulate inflammation and immune activity. Ergo even if it was just a result of inflammation (which it isn't) you can absolutely think your way into and out of depression. Your attitude of powerlessness is harmful to people who buy into it.