private static void addEventTypes(Set<Integer> set,int[] items){
  for (  int i : items)   set.add(i);
}

private static void addEventTypes ( Set < Integer > set , int [ ] items ) { for ( int i : items ) set . add ( i ) ; }
adds all elements to a set .
