private String resolveParameterName(String preferredOption,Parameter fallback){
  if (StringUtils.hasText(preferredOption)) {
    return preferredOption;
  }
 else {
    return fallback != null ? fallback.getName() : null;
  }
}

private String resolveParameterName ( String preferredOption , Parameter fallback ) { if ( StringUtils . hasText ( preferredOption ) ) { return preferredOption ; } else { return fallback != null ? fallback . getName ( ) : null ; } }
simple method to prefer a string ( which usually is specified by annotation )
