If the shoe fits, wear it
Literally 'whoever itches should scratch'. Said after a comment that could apply to someone who feels criticised — implies they recognised themselves in it.
I didn't mention any names. If the shoe fits, wear it.
—Are you saying that about me? —If the shoe fits, wear it.
I spoke in general terms. If the shoe fits, wear it.