I believe Psychologists call this projection.
Which is, in fact, is the same scientific basis for this theorum..."he who smelt it dealt it." and, more colloquially, "the smeller's the feller."