for (Category cat: (List<Category>) cg.collectFromCategoryLinks(null))
for (Category cat: (List<Category>) cg.eachLinkedCategory(null))
    private void check_cgci_ids(List ids1, List ids2)    {        check_cgc_ids( ids1 );        for (CategoryGroup cg: (List<CategoryGroup>) list)        {            for (Category cat: (List<Category>) cg.collectFromCategoryLinks(null))            {                List imagesIds = cat.collectFromImageLinks( new IdBlock() );                assertTrue( "Missing images",                         imagesIds.containsAll( ids2 ));            }                    }    }