Program: 165550
Project: 165550
Buggy source:
protected Movie amalgamateMovie(Movie currentlySelectedMovieDMM,Movie currentlySelectedMovieActionJav,Movie currentlySelectedMovieSquarePlus,Movie currentlySelectedMovieJavLibrary,Movie currentlySelectedMovieJavZoo){
  if (currentlySelectedMovieDMM == null && currentlySelectedMovieActionJav == null && currentlySelectedMovieSquarePlus == null && currentlySelectedMovieJavLibrary == null)   return null;
 else   if (movieToWriteToDisk != null && currentlySelectedMovieDMM == null && currentlySelectedMovieActionJav == null && currentlySelectedMovieSquarePlus == null && currentlySelectedMovieJavLibrary == null) {
    return movieToWriteToDisk;
  }
 else   if (currentlySelectedMovieJavLibrary != null && currentlySelectedMovieDMM != null && (currentlySelectedMovieActionJav != null || currentlySelectedMovieSquarePlus != null || currentlySelectedMovieJavZoo != null)) {
    currentlySelectedMovieJavLibrary.setPlot(currentlySelectedMovieDMM.getPlot());
    currentlySelectedMovieJavLibrary.setOriginalTitle(currentlySelectedMovieDMM.getOriginalTitle());
    currentlySelectedMovieJavLibrary.setSet(currentlySelectedMovieDMM.getSet());
    if (currentlySelectedMovieActionJav != null && currentlySelectedMovieActionJav.getPlot() != null && currentlySelectedMovieActionJav.getPlot().getPlot().length() > 1)     currentlySelectedMovieJavLibrary.setPlot(currentlySelectedMovieActionJav.getPlot());
    if (currentlySelectedMovieSquarePlus != null && currentlySelectedMovieSquarePlus.getTitle() != null && currentlySelectedMovieSquarePlus.getTitle().getTitle().length() > 1)     currentlySelectedMovieJavLibrary.setTitle(currentlySelectedMovieSquarePlus.getTitle());
    if (currentlySelectedMovieActionJav != null && currentlySelectedMovieActionJav.getTitle() != null && currentlySelectedMovieActionJav.getTitle().getTitle().length() > 1)     currentlySelectedMovieJavLibrary.setTitle(currentlySelectedMovieActionJav.getTitle());
    if (currentlySelectedMovieJavLibrary.getActors().size() == 0 && currentlySelectedMovieActionJav != null && currentlySelectedMovieActionJav.getActors().size() > 0)     currentlySelectedMovieJavLibrary.setActors(currentlySelectedMovieActionJav.getActors());
    currentlySelectedMovieJavLibrary.setFanart(currentlySelectedMovieDMM.getFanart());
    currentlySelectedMovieJavLibrary.setPosters(currentlySelectedMovieDMM.getPosters());
    if (currentlySelectedMovieJavZoo != null && currentlySelectedMovieJavZoo.getSet() != null && currentlySelectedMovieJavZoo.getSet().getSet().length() > 0)     currentlySelectedMovieJavLibrary.setSet(currentlySelectedMovieJavZoo.getSet());
    currentlySelectedMovieJavLibrary.setExtraFanart(currentlySelectedMovieDMM.getExtraFanart());
    return currentlySelectedMovieJavLibrary;
  }
 else   if (currentlySelectedMovieJavLibrary != null && currentlySelectedMovieDMM != null && currentlySelectedMovieActionJav != null) {
    currentlySelectedMovieJavLibrary.setPlot(currentlySelectedMovieDMM.getPlot());
    currentlySelectedMovieJavLibrary.setOriginalTitle(currentlySelectedMovieDMM.getOriginalTitle());
    currentlySelectedMovieJavLibrary.setSet(currentlySelectedMovieDMM.getSet());
    if (currentlySelectedMovieActionJav.getPlot() != null && currentlySelectedMovieActionJav.getPlot().getPlot().length() > 1)     currentlySelectedMovieJavLibrary.setPlot(currentlySelectedMovieActionJav.getPlot());
    if (currentlySelectedMovieActionJav.getTitle() != null && currentlySelectedMovieActionJav.getTitle().getTitle().length() > 1)     currentlySelectedMovieJavLibrary.setTitle(currentlySelectedMovieActionJav.getTitle());
    if (currentlySelectedMovieJavZoo != null && currentlySelectedMovieJavZoo.getSet() != null && currentlySelectedMovieJavZoo.getSet().getSet().length() > 0)     currentlySelectedMovieJavLibrary.setSet(currentlySelectedMovieJavZoo.getSet());
    currentlySelectedMovieJavLibrary.setExtraFanart(currentlySelectedMovieDMM.getExtraFanart());
    return currentlySelectedMovieJavLibrary;
  }
 else   if (currentlySelectedMovieJavLibrary != null && currentlySelectedMovieDMM != null) {
    currentlySelectedMovieJavLibrary.setPlot(currentlySelectedMovieDMM.getPlot());
    currentlySelectedMovieJavLibrary.setOriginalTitle(currentlySelectedMovieDMM.getOriginalTitle());
    if (currentlySelectedMovieJavZoo != null && currentlySelectedMovieJavZoo.getSet() != null && currentlySelectedMovieJavZoo.getSet().getSet().length() > 0)     currentlySelectedMovieJavLibrary.setSet(currentlySelectedMovieJavZoo.getSet());
    currentlySelectedMovieJavLibrary.setExtraFanart(currentlySelectedMovieDMM.getExtraFanart());
    return currentlySelectedMovieJavLibrary;
  }
 else   if (currentlySelectedMovieJavLibrary != null) {
    if (currentlySelectedMovieJavZoo != null && currentlySelectedMovieJavZoo.getSet() != null && currentlySelectedMovieJavZoo.getSet().getSet().length() > 0)     currentlySelectedMovieJavLibrary.setSet(currentlySelectedMovieJavZoo.getSet());
    return currentlySelectedMovieJavLibrary;
  }
 else   if (currentlySelectedMovieActionJav == null && currentlySelectedMovieSquarePlus == null) {
    if (currentlySelectedMovieJavZoo != null && currentlySelectedMovieJavZoo.getSet() != null && currentlySelectedMovieJavZoo.getSet().getSet().length() > 0)     currentlySelectedMovieDMM.setSet(currentlySelectedMovieJavZoo.getSet());
    return currentlySelectedMovieDMM;
  }
 else   if (currentlySelectedMovieActionJav != null && currentlySelectedMovieSquarePlus == null) {
    ArrayList<Actor> actorsToUse=(currentlySelectedMovieActionJav.getActors().size() > 0 && currentlySelectedMovieActionJav.getActors().size() >= currentlySelectedMovieDMM.getActors().size()) ? currentlySelectedMovieActionJav.getActors() : currentlySelectedMovieDMM.getActors();
    ArrayList<Director> directorsToUse=(currentlySelectedMovieActionJav.getDirectors().size() > 0) ? currentlySelectedMovieActionJav.getDirectors() : currentlySelectedMovieDMM.getDirectors();
    Thumb[] fanartToUse=currentlySelectedMovieDMM.getFanart();
    Thumb[] extraFanartToUse=currentlySelectedMovieDMM.getExtraFanart();
    ArrayList<Genre> genresToUse=(currentlySelectedMovieActionJav.getGenres().size() > 1) ? currentlySelectedMovieActionJav.getGenres() : currentlySelectedMovieDMM.getGenres();
    ID idsToUse=currentlySelectedMovieDMM.getId();
    MPAARating mpaaToUse=currentlySelectedMovieDMM.getMpaa();
    OriginalTitle originalTitleToUse=currentlySelectedMovieDMM.getOriginalTitle();
    Outline outlineToUse=currentlySelectedMovieDMM.getOutline();
    Plot plotToUse=(currentlySelectedMovieActionJav.getPlot().getPlot().length() > 1) ? currentlySelectedMovieActionJav.getPlot() : currentlySelectedMovieDMM.getPlot();
    Thumb[] postersToUse=currentlySelectedMovieDMM.getPosters();
    Year yearToUse=currentlySelectedMovieDMM.getYear();
    Votes votesToUse=currentlySelectedMovieDMM.getVotes();
    Top250 top250ToUse=currentlySelectedMovieDMM.getTop250();
    Title titleToUse=(currentlySelectedMovieActionJav.getTitle().getTitle().length() > 1) ? currentlySelectedMovieActionJav.getTitle() : currentlySelectedMovieDMM.getTitle();
    Tagline taglineToUse=currentlySelectedMovieDMM.getTagline();
    Rating ratingToUse=currentlySelectedMovieDMM.getRating();
    Runtime runtimeToUse=(currentlySelectedMovieActionJav.getRuntime().getRuntime().length() > 1) ? currentlySelectedMovieActionJav.getRuntime() : currentlySelectedMovieDMM.getRuntime();
    Set setToUse=currentlySelectedMovieDMM.getSet();
    SortTitle sortTitleToUse=currentlySelectedMovieDMM.getSortTitle();
    Studio studioToUse=(currentlySelectedMovieActionJav.getStudio().getStudio().length() > 1) ? currentlySelectedMovieActionJav.getStudio() : currentlySelectedMovieDMM.getStudio();
    Movie amalgamatedMovie=new Movie(actorsToUse,directorsToUse,fanartToUse,extraFanartToUse,genresToUse,idsToUse,mpaaToUse,originalTitleToUse,outlineToUse,plotToUse,postersToUse,ratingToUse,runtimeToUse,setToUse,sortTitleToUse,studioToUse,taglineToUse,titleToUse,top250ToUse,votesToUse,yearToUse);
    return amalgamatedMovie;
  }
 else   if (currentlySelectedMovieActionJav == null && currentlySelectedMovieSquarePlus != null) {
    ArrayList<Actor> actorsToUse=currentlySelectedMovieDMM.getActors();
    ArrayList<Director> directorsToUse=currentlySelectedMovieDMM.getDirectors();
    Thumb[] fanartToUse=currentlySelectedMovieDMM.getFanart();
    Thumb[] extraFanartToUse=currentlySelectedMovieDMM.getExtraFanart();
    ArrayList<Genre> genresToUse=currentlySelectedMovieDMM.getGenres();
    ID idsToUse=currentlySelectedMovieDMM.getId();
    MPAARating mpaaToUse=currentlySelectedMovieDMM.getMpaa();
    OriginalTitle originalTitleToUse=currentlySelectedMovieDMM.getOriginalTitle();
    Outline outlineToUse=currentlySelectedMovieDMM.getOutline();
    Plot plotToUse=currentlySelectedMovieDMM.getPlot();
    Thumb[] postersToUse=currentlySelectedMovieDMM.getPosters();
    Year yearToUse=currentlySelectedMovieDMM.getYear();
    Votes votesToUse=currentlySelectedMovieDMM.getVotes();
    Top250 top250ToUse=currentlySelectedMovieDMM.getTop250();
    Title titleToUse=currentlySelectedMovieSquarePlus.getTitle();
    Tagline taglineToUse=currentlySelectedMovieDMM.getTagline();
    Rating ratingToUse=currentlySelectedMovieDMM.getRating();
    Runtime runtimeToUse=currentlySelectedMovieDMM.getRuntime();
    Set setToUse=currentlySelectedMovieDMM.getSet();
    SortTitle sortTitleToUse=currentlySelectedMovieDMM.getSortTitle();
    Studio studioToUse=currentlySelectedMovieDMM.getStudio();
    Movie amalgamatedMovie=new Movie(actorsToUse,directorsToUse,fanartToUse,extraFanartToUse,genresToUse,idsToUse,mpaaToUse,originalTitleToUse,outlineToUse,plotToUse,postersToUse,ratingToUse,runtimeToUse,setToUse,sortTitleToUse,studioToUse,taglineToUse,titleToUse,top250ToUse,votesToUse,yearToUse);
    return amalgamatedMovie;
  }
 else {
    ArrayList<Actor> actorsToUse=(currentlySelectedMovieActionJav.getActors().size() > 0 && currentlySelectedMovieActionJav.getActors().size() >= currentlySelectedMovieDMM.getActors().size()) ? currentlySelectedMovieActionJav.getActors() : currentlySelectedMovieDMM.getActors();
    ArrayList<Director> directorsToUse=(currentlySelectedMovieActionJav.getDirectors().size() > 0) ? currentlySelectedMovieActionJav.getDirectors() : currentlySelectedMovieDMM.getDirectors();
    Thumb[] fanartToUse=currentlySelectedMovieDMM.getFanart();
    Thumb[] extraFanartToUse=currentlySelectedMovieDMM.getExtraFanart();
    ArrayList<Genre> genresToUse=(currentlySelectedMovieActionJav.getGenres().size() > 1) ? currentlySelectedMovieActionJav.getGenres() : currentlySelectedMovieDMM.getGenres();
    ID idsToUse=currentlySelectedMovieDMM.getId();
    MPAARating mpaaToUse=currentlySelectedMovieDMM.getMpaa();
    OriginalTitle originalTitleToUse=currentlySelectedMovieDMM.getOriginalTitle();
    Outline outlineToUse=currentlySelectedMovieDMM.getOutline();
    Plot plotToUse=(currentlySelectedMovieActionJav.getPlot().getPlot().length() > 1) ? currentlySelectedMovieActionJav.getPlot() : currentlySelectedMovieDMM.getPlot();
    Thumb[] postersToUse=currentlySelectedMovieDMM.getPosters();
    Year yearToUse=currentlySelectedMovieDMM.getYear();
    Votes votesToUse=currentlySelectedMovieDMM.getVotes();
    Top250 top250ToUse=currentlySelectedMovieDMM.getTop250();
    Title titleToUse=currentlySelectedMovieActionJav.getTitle();
    Tagline taglineToUse=currentlySelectedMovieDMM.getTagline();
    Rating ratingToUse=currentlySelectedMovieDMM.getRating();
    Runtime runtimeToUse=(currentlySelectedMovieActionJav.getRuntime().getRuntime().length() > 1) ? currentlySelectedMovieActionJav.getRuntime() : currentlySelectedMovieDMM.getRuntime();
    Set setToUse=currentlySelectedMovieDMM.getSet();
    SortTitle sortTitleToUse=currentlySelectedMovieDMM.getSortTitle();
    Studio studioToUse=(currentlySelectedMovieActionJav.getStudio().getStudio().length() > 1) ? currentlySelectedMovieActionJav.getStudio() : currentlySelectedMovieDMM.getStudio();
    Movie amalgamatedMovie=new Movie(actorsToUse,directorsToUse,fanartToUse,extraFanartToUse,genresToUse,idsToUse,mpaaToUse,originalTitleToUse,outlineToUse,plotToUse,postersToUse,ratingToUse,runtimeToUse,setToUse,sortTitleToUse,studioToUse,taglineToUse,titleToUse,top250ToUse,votesToUse,yearToUse);
    return amalgamatedMovie;
  }
}

Fixed version (ground truth):
protected Movie amalgamateMovie(Movie currentlySelectedMovieDMM,Movie currentlySelectedMovieActionJav,Movie currentlySelectedMovieSquarePlus,Movie currentlySelectedMovieJavLibrary,Movie currentlySelectedMovieJavZoo){
  if (currentlySelectedMovieDMM == null && currentlySelectedMovieActionJav == null && currentlySelectedMovieSquarePlus == null && currentlySelectedMovieJavLibrary == null)   return null;
 else   if (movieToWriteToDisk != null && currentlySelectedMovieDMM == null && currentlySelectedMovieActionJav == null && currentlySelectedMovieSquarePlus == null && currentlySelectedMovieJavLibrary == null) {
    return movieToWriteToDisk;
  }
 else   if (currentlySelectedMovieJavLibrary != null && currentlySelectedMovieDMM != null && (currentlySelectedMovieActionJav != null || currentlySelectedMovieSquarePlus != null || currentlySelectedMovieJavZoo != null)) {
    currentlySelectedMovieJavLibrary.setPlot(currentlySelectedMovieDMM.getPlot());
    currentlySelectedMovieJavLibrary.setOriginalTitle(currentlySelectedMovieDMM.getOriginalTitle());
    currentlySelectedMovieJavLibrary.setSet(currentlySelectedMovieDMM.getSet());
    if (currentlySelectedMovieActionJav != null && currentlySelectedMovieActionJav.getPlot() != null && currentlySelectedMovieActionJav.getPlot().getPlot().length() > 1)     currentlySelectedMovieJavLibrary.setPlot(currentlySelectedMovieActionJav.getPlot());
    if (currentlySelectedMovieSquarePlus != null && currentlySelectedMovieSquarePlus.getTitle() != null && currentlySelectedMovieSquarePlus.getTitle().getTitle().length() > 1)     currentlySelectedMovieJavLibrary.setTitle(currentlySelectedMovieSquarePlus.getTitle());
    if (currentlySelectedMovieActionJav != null && currentlySelectedMovieActionJav.getTitle() != null && currentlySelectedMovieActionJav.getTitle().getTitle().length() > 1)     currentlySelectedMovieJavLibrary.setTitle(currentlySelectedMovieActionJav.getTitle());
    if (currentlySelectedMovieJavLibrary.getActors().size() == 0 && currentlySelectedMovieActionJav != null && currentlySelectedMovieActionJav.getActors().size() > 0)     currentlySelectedMovieJavLibrary.setActors(currentlySelectedMovieActionJav.getActors());
    currentlySelectedMovieJavLibrary.setFanart(currentlySelectedMovieDMM.getFanart());
    currentlySelectedMovieJavLibrary.setPosters(currentlySelectedMovieDMM.getPosters());
    if (currentlySelectedMovieJavZoo != null && currentlySelectedMovieJavZoo.getSet() != null && currentlySelectedMovieJavZoo.getSet().getSet().length() > 0)     currentlySelectedMovieJavLibrary.setSet(currentlySelectedMovieJavZoo.getSet());
    currentlySelectedMovieJavLibrary.setExtraFanart(currentlySelectedMovieDMM.getExtraFanart());
    if (currentlySelectedMovieActionJav != null && currentlySelectedMovieActionJav.getPlot() != null && currentlySelectedMovieActionJav.getPlot().getPlot().length() > 1)     currentlySelectedMovieJavLibrary.setPlot(currentlySelectedMovieActionJav.getPlot());
    return currentlySelectedMovieJavLibrary;
  }
 else   if (currentlySelectedMovieJavLibrary != null && currentlySelectedMovieDMM != null && currentlySelectedMovieActionJav != null) {
    currentlySelectedMovieJavLibrary.setPlot(currentlySelectedMovieDMM.getPlot());
    currentlySelectedMovieJavLibrary.setOriginalTitle(currentlySelectedMovieDMM.getOriginalTitle());
    currentlySelectedMovieJavLibrary.setSet(currentlySelectedMovieDMM.getSet());
    if (currentlySelectedMovieActionJav.getPlot() != null && currentlySelectedMovieActionJav.getPlot().getPlot().length() > 1)     currentlySelectedMovieJavLibrary.setPlot(currentlySelectedMovieActionJav.getPlot());
    if (currentlySelectedMovieActionJav.getTitle() != null && currentlySelectedMovieActionJav.getTitle().getTitle().length() > 1)     currentlySelectedMovieJavLibrary.setTitle(currentlySelectedMovieActionJav.getTitle());
    if (currentlySelectedMovieJavZoo != null && currentlySelectedMovieJavZoo.getSet() != null && currentlySelectedMovieJavZoo.getSet().getSet().length() > 0)     currentlySelectedMovieJavLibrary.setSet(currentlySelectedMovieJavZoo.getSet());
    currentlySelectedMovieJavLibrary.setExtraFanart(currentlySelectedMovieDMM.getExtraFanart());
    if (currentlySelectedMovieActionJav != null && currentlySelectedMovieActionJav.getPlot() != null && currentlySelectedMovieActionJav.getPlot().getPlot().length() > 1)     currentlySelectedMovieJavLibrary.setPlot(currentlySelectedMovieActionJav.getPlot());
    return currentlySelectedMovieJavLibrary;
  }
 else   if (currentlySelectedMovieJavLibrary != null && currentlySelectedMovieDMM != null) {
    currentlySelectedMovieJavLibrary.setPlot(currentlySelectedMovieDMM.getPlot());
    currentlySelectedMovieJavLibrary.setOriginalTitle(currentlySelectedMovieDMM.getOriginalTitle());
    if (currentlySelectedMovieJavZoo != null && currentlySelectedMovieJavZoo.getSet() != null && currentlySelectedMovieJavZoo.getSet().getSet().length() > 0)     currentlySelectedMovieJavLibrary.setSet(currentlySelectedMovieJavZoo.getSet());
    currentlySelectedMovieJavLibrary.setExtraFanart(currentlySelectedMovieDMM.getExtraFanart());
    if (currentlySelectedMovieActionJav != null && currentlySelectedMovieActionJav.getPlot() != null && currentlySelectedMovieActionJav.getPlot().getPlot().length() > 1)     currentlySelectedMovieJavLibrary.setPlot(currentlySelectedMovieActionJav.getPlot());
    return currentlySelectedMovieJavLibrary;
  }
 else   if (currentlySelectedMovieJavLibrary != null) {
    if (currentlySelectedMovieJavZoo != null && currentlySelectedMovieJavZoo.getSet() != null && currentlySelectedMovieJavZoo.getSet().getSet().length() > 0)     currentlySelectedMovieJavLibrary.setSet(currentlySelectedMovieJavZoo.getSet());
    if (currentlySelectedMovieActionJav != null && currentlySelectedMovieActionJav.getPlot() != null && currentlySelectedMovieActionJav.getPlot().getPlot().length() > 1)     currentlySelectedMovieJavLibrary.setPlot(currentlySelectedMovieActionJav.getPlot());
    return currentlySelectedMovieJavLibrary;
  }
 else   if (currentlySelectedMovieActionJav == null && currentlySelectedMovieSquarePlus == null) {
    if (currentlySelectedMovieJavZoo != null && currentlySelectedMovieJavZoo.getSet() != null && currentlySelectedMovieJavZoo.getSet().getSet().length() > 0)     currentlySelectedMovieDMM.setSet(currentlySelectedMovieJavZoo.getSet());
    return currentlySelectedMovieDMM;
  }
 else   if (currentlySelectedMovieActionJav != null && currentlySelectedMovieSquarePlus == null) {
    ArrayList<Actor> actorsToUse=(currentlySelectedMovieActionJav.getActors().size() > 0 && currentlySelectedMovieActionJav.getActors().size() >= currentlySelectedMovieDMM.getActors().size()) ? currentlySelectedMovieActionJav.getActors() : currentlySelectedMovieDMM.getActors();
    ArrayList<Director> directorsToUse=(currentlySelectedMovieActionJav.getDirectors().size() > 0) ? currentlySelectedMovieActionJav.getDirectors() : currentlySelectedMovieDMM.getDirectors();
    Thumb[] fanartToUse=currentlySelectedMovieDMM.getFanart();
    Thumb[] extraFanartToUse=currentlySelectedMovieDMM.getExtraFanart();
    ArrayList<Genre> genresToUse=(currentlySelectedMovieActionJav.getGenres().size() > 1) ? currentlySelectedMovieActionJav.getGenres() : currentlySelectedMovieDMM.getGenres();
    ID idsToUse=currentlySelectedMovieDMM.getId();
    MPAARating mpaaToUse=currentlySelectedMovieDMM.getMpaa();
    OriginalTitle originalTitleToUse=currentlySelectedMovieDMM.getOriginalTitle();
    Outline outlineToUse=currentlySelectedMovieDMM.getOutline();
    Plot plotToUse=(currentlySelectedMovieActionJav.getPlot().getPlot().length() > 1) ? currentlySelectedMovieActionJav.getPlot() : currentlySelectedMovieDMM.getPlot();
    Thumb[] postersToUse=currentlySelectedMovieDMM.getPosters();
    Year yearToUse=currentlySelectedMovieDMM.getYear();
    Votes votesToUse=currentlySelectedMovieDMM.getVotes();
    Top250 top250ToUse=currentlySelectedMovieDMM.getTop250();
    Title titleToUse=(currentlySelectedMovieActionJav.getTitle().getTitle().length() > 1) ? currentlySelectedMovieActionJav.getTitle() : currentlySelectedMovieDMM.getTitle();
    Tagline taglineToUse=currentlySelectedMovieDMM.getTagline();
    Rating ratingToUse=currentlySelectedMovieDMM.getRating();
    Runtime runtimeToUse=(currentlySelectedMovieActionJav.getRuntime().getRuntime().length() > 1) ? currentlySelectedMovieActionJav.getRuntime() : currentlySelectedMovieDMM.getRuntime();
    Set setToUse=currentlySelectedMovieDMM.getSet();
    SortTitle sortTitleToUse=currentlySelectedMovieDMM.getSortTitle();
    Studio studioToUse=(currentlySelectedMovieActionJav.getStudio().getStudio().length() > 1) ? currentlySelectedMovieActionJav.getStudio() : currentlySelectedMovieDMM.getStudio();
    Movie amalgamatedMovie=new Movie(actorsToUse,directorsToUse,fanartToUse,extraFanartToUse,genresToUse,idsToUse,mpaaToUse,originalTitleToUse,outlineToUse,plotToUse,postersToUse,ratingToUse,runtimeToUse,setToUse,sortTitleToUse,studioToUse,taglineToUse,titleToUse,top250ToUse,votesToUse,yearToUse);
    return amalgamatedMovie;
  }
 else   if (currentlySelectedMovieActionJav == null && currentlySelectedMovieSquarePlus != null) {
    ArrayList<Actor> actorsToUse=currentlySelectedMovieDMM.getActors();
    ArrayList<Director> directorsToUse=currentlySelectedMovieDMM.getDirectors();
    Thumb[] fanartToUse=currentlySelectedMovieDMM.getFanart();
    Thumb[] extraFanartToUse=currentlySelectedMovieDMM.getExtraFanart();
    ArrayList<Genre> genresToUse=currentlySelectedMovieDMM.getGenres();
    ID idsToUse=currentlySelectedMovieDMM.getId();
    MPAARating mpaaToUse=currentlySelectedMovieDMM.getMpaa();
    OriginalTitle originalTitleToUse=currentlySelectedMovieDMM.getOriginalTitle();
    Outline outlineToUse=currentlySelectedMovieDMM.getOutline();
    Plot plotToUse=currentlySelectedMovieDMM.getPlot();
    Thumb[] postersToUse=currentlySelectedMovieDMM.getPosters();
    Year yearToUse=currentlySelectedMovieDMM.getYear();
    Votes votesToUse=currentlySelectedMovieDMM.getVotes();
    Top250 top250ToUse=currentlySelectedMovieDMM.getTop250();
    Title titleToUse=currentlySelectedMovieSquarePlus.getTitle();
    Tagline taglineToUse=currentlySelectedMovieDMM.getTagline();
    Rating ratingToUse=currentlySelectedMovieDMM.getRating();
    Runtime runtimeToUse=currentlySelectedMovieDMM.getRuntime();
    Set setToUse=currentlySelectedMovieDMM.getSet();
    SortTitle sortTitleToUse=currentlySelectedMovieDMM.getSortTitle();
    Studio studioToUse=currentlySelectedMovieDMM.getStudio();
    Movie amalgamatedMovie=new Movie(actorsToUse,directorsToUse,fanartToUse,extraFanartToUse,genresToUse,idsToUse,mpaaToUse,originalTitleToUse,outlineToUse,plotToUse,postersToUse,ratingToUse,runtimeToUse,setToUse,sortTitleToUse,studioToUse,taglineToUse,titleToUse,top250ToUse,votesToUse,yearToUse);
    return amalgamatedMovie;
  }
 else {
    ArrayList<Actor> actorsToUse=(currentlySelectedMovieActionJav.getActors().size() > 0 && currentlySelectedMovieActionJav.getActors().size() >= currentlySelectedMovieDMM.getActors().size()) ? currentlySelectedMovieActionJav.getActors() : currentlySelectedMovieDMM.getActors();
    ArrayList<Director> directorsToUse=(currentlySelectedMovieActionJav.getDirectors().size() > 0) ? currentlySelectedMovieActionJav.getDirectors() : currentlySelectedMovieDMM.getDirectors();
    Thumb[] fanartToUse=currentlySelectedMovieDMM.getFanart();
    Thumb[] extraFanartToUse=currentlySelectedMovieDMM.getExtraFanart();
    ArrayList<Genre> genresToUse=(currentlySelectedMovieActionJav.getGenres().size() > 1) ? currentlySelectedMovieActionJav.getGenres() : currentlySelectedMovieDMM.getGenres();
    ID idsToUse=currentlySelectedMovieDMM.getId();
    MPAARating mpaaToUse=currentlySelectedMovieDMM.getMpaa();
    OriginalTitle originalTitleToUse=currentlySelectedMovieDMM.getOriginalTitle();
    Outline outlineToUse=currentlySelectedMovieDMM.getOutline();
    Plot plotToUse=(currentlySelectedMovieActionJav.getPlot().getPlot().length() > 1) ? currentlySelectedMovieActionJav.getPlot() : currentlySelectedMovieDMM.getPlot();
    Thumb[] postersToUse=currentlySelectedMovieDMM.getPosters();
    Year yearToUse=currentlySelectedMovieDMM.getYear();
    Votes votesToUse=currentlySelectedMovieDMM.getVotes();
    Top250 top250ToUse=currentlySelectedMovieDMM.getTop250();
    Title titleToUse=currentlySelectedMovieActionJav.getTitle();
    Tagline taglineToUse=currentlySelectedMovieDMM.getTagline();
    Rating ratingToUse=currentlySelectedMovieDMM.getRating();
    Runtime runtimeToUse=(currentlySelectedMovieActionJav.getRuntime().getRuntime().length() > 1) ? currentlySelectedMovieActionJav.getRuntime() : currentlySelectedMovieDMM.getRuntime();
    Set setToUse=currentlySelectedMovieDMM.getSet();
    SortTitle sortTitleToUse=currentlySelectedMovieDMM.getSortTitle();
    Studio studioToUse=(currentlySelectedMovieActionJav.getStudio().getStudio().length() > 1) ? currentlySelectedMovieActionJav.getStudio() : currentlySelectedMovieDMM.getStudio();
    Movie amalgamatedMovie=new Movie(actorsToUse,directorsToUse,fanartToUse,extraFanartToUse,genresToUse,idsToUse,mpaaToUse,originalTitleToUse,outlineToUse,plotToUse,postersToUse,ratingToUse,runtimeToUse,setToUse,sortTitleToUse,studioToUse,taglineToUse,titleToUse,top250ToUse,votesToUse,yearToUse);
    return amalgamatedMovie;
  }
}