Handle transformer lookup in class methods