public boolean hasGroupAnnotation() { for (Data note : this.notes) { if (note.isGroup()) { return true; } } return false; }
public String getGroupNoteContent() { for (Data note : this.notes) { if (note.isGroup()) { return note.getText(); } } return ""; }