private void printAnnotations(List<AnnotationExpr> annotations,Object arg,boolean isOnReceiver){
  if (annotations != null) {
    Iterator<AnnotationExpr> i=annotations.iterator();
    if (i.hasNext()) {
      AnnotationExpr a=i.next();
      if (isOnReceiver) {
        printer.print(" ");
      }
      a.accept(this,arg);
      while (i.hasNext()) {
        printer.print(" ");
        a=i.next();
        a.accept(this,arg);
      }
      if (!isOnReceiver) {
        printer.print(" ");
      }
    }
  }
}

private void printAnnotations ( List < AnnotationExpr > annotations , Object arg , boolean isOnReceiver ) { if ( annotations != null ) { Iterator < AnnotationExpr > i = annotations . iterator ( ) ; if ( i . hasNext ( ) ) { AnnotationExpr a = i . next ( ) ; if ( isOnReceiver ) { printer . print ( " " ) ; } a . accept ( this , arg ) ; while ( i . hasNext ( ) ) { printer . print ( " " ) ; a = i . next ( ) ; a . accept ( this , arg ) ; } if ( ! isOnReceiver ) { printer . print ( " " ) ; } } } }
print a list of annotations . the final parameter determines whether to issue a leading ( if true ) or trailing ( if false ) space .
