private function getParentClassNames(\ReflectionClass $reflectionClass)
    {
        $parentClassNames = [];

        while ($parent = $reflectionClass->getParentClass()) {
            $parentClassNames[] = $parent->getName();
            $reflectionClass = $parent;
        }

        return $parentClassNames;
    }