public static function findClassFileUsingPsr(string $class): string
    {
        $classLoader = self::classLoader();
        $originalClassMap = $classLoader->getClassMap();
        $classMap = &Objects::getPropertyValue($classLoader, 'classMap', ClassLoader::class);
        $classMap = [];

        if (!$file = self::classLoader()->findFile($class)) {
            throw new \LogicException(sprintf('The class "%s" file was not found.', $class));
        }

        $classMap = $originalClassMap;

        return $file;
    }