public static int size(StringBuilder builder){
  return builder.length();
}

public static int size ( StringBuilder builder ) { return builder . length ( ) ; }
standard groovy size ( ) method for stringbuilders .
