private static boolean areDataFlavorsAvailable(Collection<DataFlavor> contents, DataFlavor... flavors) {
    for (DataFlavor flavor : flavors) {
      if (contents.contains(flavor)) {
        return true;
      }
    }
    return false;
  }
private static boolean areDataFlavorsAvailable(Collection<DataFlavor> contents, DataFlavor... flavors)