Which psychological theory states that the mind insists on finding patterns in things that contribute to the development of insight?

Gestalt psychology