 
 import Foundation
 import Shared
+import Storage
 import MozillaAppServices
 
 struct ASGroup<T> {


class SearchTermGroupsManager {

    public static func getURLGroups(with profile: Profile, from urls: [URL], using ordering: ComparisonResult, completion: @escaping ([ASGroup<URL>]?, _ filteredItems: [URL]) -> Void) {
        getGroups(with: profile, from: urls, using: ordering, completion: completion)
    }


            innerMetadataLoop: for (searchTerm, historyMetaList) in searchTermMetadata {
                if historyMetaList.contains(where: { metadata in
                    var stringURL: String = ""
                    if let item = item as? Site {
                        stringURL = item.url

                    } else if let item = item as? Tab, let url = item.lastKnownUrl?.absoluteString {
                        stringURL = url
