private synchronized void saveToSettings(){
  List<List> entriesToSave=new ArrayList<>();
  for (  StatusHistoryEntry entry : entries.values()) {
    entriesToSave.add(entryToList(entry));
  }
  settings.putList("statusPresets",entriesToSave);
}

private synchronized void saveToSettings ( ) { List < List > entriesToSave = new ArrayList < > ( ) ; for ( StatusHistoryEntry entry : entries . values ( ) ) { entriesToSave . add ( entryToList ( entry ) ) ; } settings . putList ( "statusPresets" , entriesToSave ) ; }
turns all entries into a list and adds them to a list that is saved in the settings .
