/**
* Remove return void or return null annotations..
*
* @param DocBlock $doc
* @param Annotation $annotation
*/
private function fixAnnotation(DocBlock $doc, Annotation $annotation)
{
if (1 === preg_match('/@return\\s+(void|null)(?!\\|)/', $doc->getLine($annotation->getStart())->getContent())) {
$annotation->remove();
}
}