protected override void GetParentsAbove(int id, HashSet <int> parentsAbove)
{
if (SavedSearchFilters.IsSavedFilter(id))
{
parentsAbove.Add(SavedSearchFilters.GetRootInstanceID());
}
else
{
// AssetDatabase folders (in Assets or Packages)
var path = AssetDatabase.GetAssetPath(id);
if (Directory.Exists(path))
{
parentsAbove.UnionWith(ProjectWindowUtil.GetAncestors(id));
}
}
}