/// <summary>
        /// Creates the <see cref="IFilterItemCollection" /> instance based on file type.
        /// </summary>
        /// <returns>Returns the <see cref="IFilterItemCollection" /> instance created.</returns>
        public static IFilterItemCollection CreateInstance()
        {
            string filename;
            IFilterItemCollection collection;
            if (XmlFilterExists(out filename))
            {
                collection = new XmlFilterItemCollection(filename);
            }
            else if (JsonFilterExists(out filename))
            {
                collection = new JsonFilterItemCollection(filename);
            }
            else if (YamlFilterExists(out filename))
            {
                collection = new YamlFilterItemCollection(filename);
            }
            else
            {
                throw new InvalidOperationException("No filter found");
            }

            return collection;
        }
        /// <summary>
        /// Creates the <see cref="IFilterItemCollection" /> instance based on file type.
        /// </summary>
        /// <returns>Returns the <see cref="IFilterItemCollection" /> instance created.</returns>
        public static IFilterItemCollection CreateInstance()
        {
            string filename;
            IFilterItemCollection collection;

            if (XmlFilterExists(out filename))
            {
                collection = new XmlFilterItemCollection(filename);
            }
            else if (JsonFilterExists(out filename))
            {
                collection = new JsonFilterItemCollection(filename);
            }
            else if (YamlFilterExists(out filename))
            {
                collection = new YamlFilterItemCollection(filename);
            }
            else
            {
                throw new InvalidOperationException("No filter found");
            }

            return(collection);
        }