void setOrAppendNotes(SBase sbase, string note) { if (sbase.isSetNotes ()) { sbase.appendNotes (note); } else { sbase.setNotes (note); } }