private void updateTags(Movie movie){
  List<String> availableTags=new ArrayList<>(tagsObservable);
  for (  String tagInMovie : new ArrayList<>(movie.getTags())) {
    boolean tagFound=false;
    for (    String tag : availableTags) {
      if (tagInMovie.equals(tag)) {
        tagFound=true;
        break;
      }
    }
    if (!tagFound) {
      addTag(tagInMovie);
    }
  }
}

private void updateTags ( Movie movie ) { List < String > availableTags = new ArrayList < > ( tagsObservable ) ; for ( String tagInMovie : new ArrayList < > ( movie . getTags ( ) ) ) { boolean tagFound = false ; for ( String tag : availableTags ) { if ( tagInMovie . equals ( tag ) ) { tagFound = true ; break ; } } if ( ! tagFound ) { addTag ( tagInMovie ) ; } } }
update tags used in movies .
