docs: static boolean safeContains(Collection<?> collection, @Nullable Object object) {
      checkNotNull(collection);
      try {
        return collection.contains(object);
      } catch (ClassCastException e) {
        return false;
      } catch (NullPointerException e) {
        return false;
      }
    }