function extract_doc_annotations($comment, $annotation)
{
$values = [];
foreach (explode("\n", $comment) as $line) {
if (!Str::startsWith(trim($line), '* ' . $annotation)) {
continue;
}
$value = Str::substringAfter($line, $annotation);
if ($value !== '') {
$values[] = trim($value);
}
}
return $values;
}