private static ICollection <SafeType <APIOperation> > TranslateOperations(SafeType <SPIOperation>[] ops) { ICollection <SafeType <APIOperation> > set = new HashSet <SafeType <APIOperation> >(); foreach (SafeType <SPIOperation> spi in ops) { CollectionUtil.AddAll(set, FrameworkUtil.Spi2Apis(spi)); } return(set); }