docs: public static boolean nonEmptyIntersection(
        Comparator<String> comparator, String[] first, String[] second) {
      if (first == null || second == null || first.length == 0 || second.length == 0) {
        return false;
      }
      for (String a : first) {
        for (String b : second) {
          if (comparator.compare(a, b) == 0) {
            return true;
          }
        }
      }
      return false;
    }