protected function filterArrayByClassesInPackageNamespace(array $array, $packageKey)
    {
        return array_filter($array, function ($className) use ($packageKey) {
            return (isset($this->availableClassNames[$packageKey]) && in_array($className, $this->availableClassNames[$packageKey]));
        }, ARRAY_FILTER_USE_KEY);
    }