(models) added methods to SwitchUtil to check and visit EObjects.