use Types to your Advantage `Class<Activity>` or `Class<? extends Activity>`