Reintroduce HasLifecycleCallbacks annotation.