private static String createTypeCollectionId(Collection<Type> types) {
        return types.stream()
            .sorted(comparing(CdiSpiHelper::createTypeId))
            .map(CdiSpiHelper::createTypeId)
            .collect(joining(",", "[", "]"));
    }
private static String createTypeCollectionId ( Collection < Type > types ) { return types . stream ( ) . sorted ( comparing ( CdiSpiHelper :: createTypeId ) ) . map ( CdiSpiHelper :: createTypeId ) . collect ( joining ( "," , "[" , "]" ) ) ; }
Generates a unique signature of a collection of types.