What is the meaning of [Watch the doughnut, and not the hole]

Focus on what you have and not on what you don’t.

Example: X: I’ve to submit the assignment next Monday, but I don’t have a clue on the topic. Y: Consult your friends. Consult books. Understand the topic. Watch the doughnut, and not the hole.