private function resolveAutomaticallyIgnoredPaths()
    {
        foreach ($this->paths as $path) {
            if (is_array($path)) {
                $path = $path['home'];
            }
            if (!Str::endsWith($path, $this->normalizePath('_template/'))) {
                $ignoredPath = $this->normalizePath(realpath($path.'/composer.json'));

                if (!in_array($ignoredPath, $this->automaticallyResolvedIgnoredPaths)) {
                    $this->automaticallyResolvedIgnoredPaths[] = $ignoredPath;
                }
            }
        }

        // Add the '_newup' directory.
        $this->automaticallyResolvedIgnoredPaths[] = $this->normalizePath('_newup\*');
    }