static O[] getFieldsAsParams(O o, L fields) { new L l; for (S f : fields) { l.add(f); l.add(getOpt(o, f)); } ret toObjectArray(l); }