/**
  * @return string
  */
 private function getTypeByReflection(ReflectionClass $reflection)
 {
     if ($reflection->isInterface()) {
         return Elements::INTERFACES;
     } elseif ($reflection->isTrait()) {
         return Elements::TRAITS;
     } elseif ($reflection->isException()) {
         return Elements::EXCEPTIONS;
     } else {
         return Elements::CLASSES;
     }
 }