code: public static List<JBBPAbstractField> fieldsAsList(final JBBPAbstractField... fields) {
      final List<JBBPAbstractField> result = new ArrayList<>();
      Collections.addAll(result, fields);
      return result;
    }
docs: Convert array of JBBP fields into a list.
  
  @param fields an array of fields, must not be null
  @return a list of JBBP fields