@NotNull private static String wrapBracesIfNeeded(final boolean required,@NotNull final String textToShow){
  if (textToShow.startsWith(MANDATORY_ARG_BRACES.first) || textToShow.startsWith(OPTIONAL_ARG_BRACES.first)) {
    return textToShow;
  }
  final Pair<String,String> braces=(required ? MANDATORY_ARG_BRACES : OPTIONAL_ARG_BRACES);
  return String.format("%s%s%s",braces.first,textToShow,braces.second);
}

@ NotNull private static String wrapBracesIfNeeded ( final boolean required , @ NotNull final String textToShow ) { if ( textToShow . startsWith ( MANDATORY_ARG_BRACES . first ) || textToShow . startsWith ( OPTIONAL_ARG_BRACES . first ) ) { return textToShow ; } final Pair < String , String > braces = ( required ? MANDATORY_ARG_BRACES : OPTIONAL_ARG_BRACES ) ; return String . format ( "%s%s%s" , braces . first , textToShow , braces . second ) ; }
adds appropriate braces to argument help text if needed
