private List<Swatch> generateAverageColors(Collection<Vbox> vboxes) {
   ArrayList<Swatch> colors = new ArrayList<>(vboxes.size());
   for (Vbox vbox : vboxes) {
     Swatch swatch = vbox.getAverageColor();
     if (!shouldIgnoreColor(swatch)) {
       // As we're averaging a color box, we can still get colors which we do not want, so
       // we check again here
       colors.add(swatch);
     }
   }
   return colors;
 }