/**
  * {@inheritDoc}
  */
 public function leaveNode(Node $node)
 {
     if ($node === $this->currentSubScope) {
         $this->currentSubScope = null;
     }
     if ($this->currentSubScope) {
         // skip any analysis on nodes that are children of anonymous classes or functions
         return null;
     }
     return $this->wrappedVisitor->leaveNode($node);
 }