code: private function hasReturnStatement($nodes)
      {
          foreach ($this->nodeFetcher->foreachNodes($nodes) as $nodeData) {
              $node = $nodeData['node'];
              if ($node instanceof Stmt\Return_) {
                  return true;
              }
          }
  
          return false;
      }
docs: @param Stmt\ClassMethod $nodes
  
  @return bool