Make +nameForType: a class method