def METHOD_NAME(self):
    if not self.koji_parent_build:
        self.log.info('no koji parent build, skipping plugin')
        return
    if self.workflow.data.dockerfile_images.base_from_scratch:
        raise RuntimeError("from scratch can't inject parent image")
    if self.workflow.data.dockerfile_images.custom_base_image:
        self.log.info("custom base image builds can't inject parent image")
        return
    self.find_repositories()
    self.select_new_parent_image()
    self.adjust_new_parent_image()
    self.set_new_parent_image()
    return self._koji_parent_build_info['id']