While this is wrong in all of the branches in this class, we should stop doing it this way and (in a separate PR) reverse this. It should be type.isAssignableFrom( StoreUpgrader.class ) (eg. given the variable she asked for, can store upgrader be assigned to it?)