private function saveClassLikeAnnotation(InterfaceModelInterface $parent, AnnotationInterface $annotation): void
    {
        // If it is a mock, register in PhpFile
        if ($annotation->getType() === AnnotationInterface::TYPE_MOCK) {
            $parent = $parent->getParentNode();
            $annotation->setParentNode($parent);
            $parent->/** @scrutinizer ignore-call */
            addAnnotation($annotation);
            $annotation->compile();
        } else {
            // If it is a constructor, register in the current $parent
            if ($annotation->getType() === AnnotationInterface::TYPE_CONSTRUCT) {
                $annotation->setParentNode($parent);
                $parent->addAnnotation($annotation);
                $annotation->compile();
            }
        }
    }