Actually detect ref classes