private static bool SearchForExistingItemInMoviesSection(FileSystemInfo file, IEnumerable<string> filmLocations,
             IMLSection section)
        {
            if (filmLocations == null)
                return false;

            // ReSharper disable LoopCanBeConvertedToQuery
            foreach (var movieFolder in Settings.FilmsFolders)
                // ReSharper restore LoopCanBeConvertedToQuery
            {

                if (!file.FullName.Contains(movieFolder))
                    continue;

                //if (filmLocations.Any(location => location == file.FullName))
                //    return true;

                IMLItem item =
                    section.FindItemByExternalID
                        (file.FullName);

                if (item != null)
                    return true;

            }

            return false;
        }
        private static bool SearchForExistingItemInMoviesSection
            (FileSystemInfo file, IEnumerable <string> filmLocations,
            IMLSection section)
        {
            if (filmLocations == null)
            {
                return(false);
            }


            // ReSharper disable LoopCanBeConvertedToQuery
            foreach (var movieFolder in Settings.FilmsFolders)
            // ReSharper restore LoopCanBeConvertedToQuery
            {
                if (!file.FullName.Contains(movieFolder))
                {
                    continue;
                }

                //if (filmLocations.Any(location => location == file.FullName))
                //    return true;

                IMLItem item =
                    section.FindItemByExternalID
                        (file.FullName);


                if (item != null)
                {
                    return(true);
                }
            }


            return(false);
        }