code: private function fixAnnotation(DocBlock $doc, Annotation $annotation)
      {
          $types = $annotation->getNormalizedTypes();
  
          if (1 === \count($types) && ('null' === $types[0] || 'void' === $types[0])) {
              $annotation->remove();
          }
      }
docs: Remove return void or return null annotations..
  
  @param DocBlock   $doc
  @param Annotation $annotation