In the early 1600s, it was "it was "it takes a thief to catch a thief" (actually, pretty ridiculous); later, "you say she's a bad cook? it takes one to know one!", this too thankfully shortened, to "it takes one to know one."
They all fit no one as well as House Majority Leader Eric Cantor who, criticizing Minority Leader Nancy Pelosi for commending the Occupy Wall Street protesters, commented "Believe it or not, some in this town have actually condoned the pitting of Americans against Americans." John Branch, before the action on Wall Street, was prescient (but regrettably his cartoon cannot be posted here without approval).
Fortunately, Steve Stegelin also was right on point: