private static boolean contains(Object actual, Object expected) {
    if (actual instanceof Collection<?> actualList) {
      if (expected instanceof Collection<?> expectedList) {
        for (var elem : expectedList) {
          if (actualList.contains(elem)) {
            return true;
          }
        }
      } else {
        return actualList.contains(expected);
      }
    } else if (expected instanceof Collection<?> expectedList) {
      return expectedList.contains(actual);
    }
    return expected.equals(actual);
  }
The key/value pairs on this element.
planetiler-core/src/main/java/com/onthegomap/planetiler/reader/WithTags.java