protected function loadFiles(
        string $path,
        array $excludes
    ) {
        $fileFinder = new FileFinder();

        /**
         * Building the real directory or file to work in.
         */
        $filesystem = new Filesystem();
        if (!$filesystem->isAbsolutePath($path)) {
            $path = getcwd() . DIRECTORY_SEPARATOR . ltrim($path, '/');
        }

        if (!is_file($path) && !is_dir($path)) {
            throw new Exception('Directory or file "' . $path . '" does not exist');
        }

        return $fileFinder
            ->findPHPFilesByPath(
                $path,
                $excludes
            );
    }