static public void add(Errors errors,String text){
  if (errors == null) {
    return;
  }
  errors.add(text);
}

static public void add ( Errors errors , String text ) { if ( errors == null ) { return ; } errors . add ( text ) ; }
helper function that discards the text if ` errors ` is null .
