def METHOD_NAME(self, item):
    if item.lines:
        line = item.lines[0].strip()
        if mo := copyright_regex.match(line):
            # Copyright policy is active since 2018-10-21, so it applies
            # to all ebuilds committed in 2019 and later
            if int(mo.group("end")) >= 2019:
                if mo.group("holder") == "Gentoo Foundation":
                    yield self._old_copyright(line, **self.args(item))
                # Gentoo policy requires 'Gentoo Authors'
                elif mo.group("holder") != "Gentoo Authors":
                    yield self._non_gentoo_authors(line, **self.args(item))
        else:
            yield self._invalid_copyright(line, **self.args(item))
        try:
            line = item.lines[1].strip("\n")
        except IndexError:
            line = ""
        if line != self.license_header:
            yield self._invalid_license(line, **self.args(item))