code: public <T> boolean containsAny(Set<T> set, Collection<T> other) {
          for (T t : other) {
              if (set.contains(t)) {
                  return true;
              }
          }
          return false;
      }
docs: Determines if any given element in another {@link Collection} is contained in
  this set.
  
  @param set
  The set.
  @param other
  The other {@link Collection}.
  @return <code>true</code> if any other element is contained.