what does it mean when someone says its all in your imagination

When someone says "it's all in your imagination," they are implying that the situation or problem being discussed is not real or is being over-exaggerated by the person's thoughts. They may be suggesting that the person is creating false beliefs or ideas in their mind. It can also imply that the person's perception of reality is distorted or inaccurate.