chew the cud
informal
to think about something carefully and for a long time.
He sat chewing the cud all morning.
Cambridge English Idioms Dictionary