private static boolean containsAnnoOfType(List<Attribute.Compound> annos,Type type){
  for (  Attribute.Compound anno : annos) {
    if (anno.type.tsym == type.tsym)     return true;
  }
  return false;
}

private static boolean containsAnnoOfType ( List < Attribute . Compound > annos , Type type ) { for ( Attribute . Compound anno : annos ) { if ( anno . type . tsym == type . tsym ) return true ; } return false ; }
tests whether a list of annotations contains an annotation of a given type .
