protected function getAllImplementedNodeTypes(NodeType $nodeType)
{
$types = array($nodeType);
foreach ($nodeType->getDeclaredSuperTypes() as $superType) {
$types = array_merge($types, $this->getAllImplementedNodeTypes($superType));
}
return $types;
}