public void addMethodAnnotations(CstMethodRef method,Annotations annotations){
  if (methodAnnotations == null) {
    methodAnnotations=new ArrayList<MethodAnnotationStruct>();
  }
  methodAnnotations.add(new MethodAnnotationStruct(method,new AnnotationSetItem(annotations)));
}

public void addMethodAnnotations ( CstMethodRef method , Annotations annotations ) { if ( methodAnnotations == null ) { methodAnnotations = new ArrayList < MethodAnnotationStruct > ( ) ; } methodAnnotations . add ( new MethodAnnotationStruct ( method , new AnnotationSetItem ( annotations ) ) ) ; }
adds a method annotations item to this instance .
