The cap fits. meaning

HOME PROVERBS

matching

The cap fits.

said to mean that:
The hypothesis or allegation for something are proved just and true.