protected function getLastChildIfTag(NodeAbstract $node)
 {
     if (!$node instanceof NestInterface) {
         return;
     }
     if (null === ($last = $node->getLastChild())) {
         return;
     }
     if (!$last instanceof Tag) {
         return;
     }
     return $last;
 }