(it) takes one to know one
A childish retort used to suggest that the person who has accused someone of being some negative thing is in fact that thing (as if being that thing would help one to identify others of like kind). A: "You're a real jerk!" B: "Yeah, well, it takes one to know one!" A: "I don't want to sit next to her—she's a nerd!" B: "Takes one to know one!"
(It) takes one to know one.
Inf. You are one also. A: You are a stupid oaf. B: So are you. It takes one to know one.