Use is Alert.class.isAssignableFrom(c) here just in case we have subclasses