What dictionary can say about phrase

to wear different hats