small nitpick: `final Intent intent;` is cleaner