private function processCopyrightTags(File $phpcs_file, $stack_ptr, $comment_start): void
    {
        $tokens = $phpcs_file->getTokens();
        foreach ($tokens[$comment_start]['comment_tags'] as $tag) {
            if ($tokens[$tag]['content'] === $this->copyright_tag) {
                $this->checkForContentInCopyrightTag($phpcs_file, $tag, $tokens[$comment_start]['comment_closer']);

                //Use default PEAR style copyright notation checking.
                $this->processCopyright($phpcs_file, [$tag]);

                return;
            }
        }

        //No @copyright tag because not returned
        $error = 'Missing ' . $this->copyright_tag . ' tag in file doc-block';
        if (false === $phpcs_file->addFixableError($error, $stack_ptr, 'MissingCopyrightTag')) {
            return;
        }

        if ($tokens[$tokens[$comment_start]['comment_closer']]['line'] === $tokens[$comment_start]['line']) {
            $phpcs_file->fixer->replaceToken($tokens[$comment_start]['comment_closer'] - 1, '');
            $phpcs_file->fixer->addContentBefore(
                $tokens[$comment_start]['comment_closer'],
                sprintf("\n * %s %s\n ", $this->copyright_tag, $this->getCopyrightLine())
            );

            return;
        }

        $phpcs_file->fixer->addContentBefore(
            $tokens[$comment_start]['comment_closer'],
            sprintf("* %s %s\n ", $this->copyright_tag, $this->getCopyrightLine())
        );
    }