@Override
  protected Boolean visitNode(final SchemaFilter filter, final SchemaFilterType schemaFilterType) {
    return filter != null && filter.getSchemaFilterType().equals(schemaFilterType);
  }
This Visitor is used to determine if the SchemaFilter tree contains a certain type of Filter.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/utils/filter/FilterContainsVisitor.java