inspect the service class, not the instance

works better with descriptors