def METHOD_NAME(self, *, addon, deadline):
    latest_version = addon.find_latest_version(channel=amo.CHANNEL_LISTED)
    if latest_version and not latest_version.pending_rejection:
        # If the latest version for this add-on in this channel is not
        # pending rejection, we don't need to warn the developer: they have
        # already done something to fix the problem, or the versions we're
        # going to reject are just old ones that don't really affect the
        # listing. Even if somehow the latest version is still awaiting
        # review the developer likely can't do much at this point.
        log.info(
            'Skipping notification about versions pending rejections for '
            'add-on %s since there is a more recent version %s not '
            'pending rejection',
            addon.pk,
            latest_version.pk,
        )
        return
    versions = self.fetch_version_candidates_for_addon(
        addon=addon, deadline=deadline
    )
    if not versions.exists():
        log.info(
            'No versions pending rejection to notify developers about for '
            'add-on %s, skipping',
            addon.pk,
        )
        return
    self.notify_developers(
        addon=addon, versions=versions, latest_version=latest_version
    )