Wouldn't `Class<?>` fix the rawtypes warning?