question: public void saveFavoritesToSettings ( Settings settings ) { if ( ! loadedFavoritesFromSettings ) { LOGGER . warning ( "Not saving favorite emotes, because they don't seem to have been loaded in the first place." ) ; return ; } List < List > entriesToSave = new ArrayList < > ( ) ; for ( Favorite f : favorites . keySet ( ) ) { entriesToSave . add ( favoriteToList ( f , true ) ) ; } for ( Favorite f : favoritesNotFound . values ( ) ) { if ( f . notFoundCount > 30 ) { LOGGER . warning ( "Not saving favorite emote " + f + " (not found)" ) ; } else { entriesToSave . add ( favoriteToList ( f , false ) ) ; } } settings . putList ( "favoriteEmotes" , entriesToSave ) ; }
target:  Saves the favorites to the settings, discarding any favorites that haven't been found several times already.