public static String join(final List params){
  final int maxParamsToShow=20;
  return params.size() <= maxParamsToShow ? join(params,", ") : format("%s, ... (%s more)",join(params.subList(0,maxParamsToShow)),params.size() - maxParamsToShow);
}

public static String join ( final List params ) { final int maxParamsToShow = 20 ; return params . size ( ) <= maxParamsToShow ? join ( params , ", " ) : format ( "%s, ... (%s more)" , join ( params . subList ( 0 , maxParamsToShow ) ) , params . size ( ) - maxParamsToShow ) ; }
pretty - format all items of the list and combine into single string .
