The Baal Shem Tov taught:

If you see the faults of another person and they don't leave you alone, look inside. We are all mirrors for one other.

This is G‑d's great kindness to us, for without this mirror-effect
how would we ever be able to determine what needs repair?

Likutei Sichot vol. 10, p. 24.