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