Often, you need to ask yourself what is causing more disturbance? Is your failure to achieve something making you sad or seeing someone else achieving the same, making you sadder. So you know if you have to introspect and find the solution to the problem or inspect the problem itself.