One of the practices of the Baal Shem Tov is that whenever you see another person commit some wrongdoing, you should reflect on your own comparable faults, and thus not only will you learn to judge yourself and not others, but you will have continual reminders for your repentance.

Yitzhak Buxbaum in Jewish Spiritual Practices