public function getFlatCollection(array $tree) : ObjectCollection
    {
        $data = [];

        array_walk_recursive($tree, function ($item) use (&$data)
        {
            if ($item !== NULL)
            {
                $data[] = $item;
            }
        });

        return new ObjectCollection($data);
    }