public <T extends OsmRelationInfo> List<OsmReader.RelationMember<T>> relationInfo(
    Class<T> relationInfoClass) {
    List<OsmReader.RelationMember<T>> result = null;
    if (relationInfos != null) {
      for (OsmReader.RelationMember<?> info : relationInfos) {
        if (relationInfoClass.isInstance(info.relation())) {
          if (result == null) {
            result = new ArrayList<>();
          }
          @SuppressWarnings("unchecked") OsmReader.RelationMember<T> casted = (OsmReader.RelationMember<T>) info;
          result.add(casted);
        }
      }
    }
    return result == null ? List.of() : result;
  }
Returns a list of OSM relations that this element belongs to.

@param relationInfoClass class of the processed relation data
@param <T>               type of {@code relationInfoClass}
@return A list containing the OSM relation info along with the role that this element is tagged with in that
        relation
planetiler-core/src/main/java/com/onthegomap/planetiler/reader/SourceFeature.java