The answer to this question is functionalism
Functionalism was the school of thought that oppose prevailing structuralism of psychology within the late 19th century.
The school of functionalism believe that people's thought proces happened in a systematic and accurate manner rather than appearing out of the blue.