private static void internalExtract(
      final List<SchemaFilter> result,
      final SchemaFilter schemaFilter,
      final SchemaFilterType filterType) {
    if (schemaFilter.getSchemaFilterType().equals(filterType)) {
      result.add(schemaFilter);
    }
    if (schemaFilter.getSchemaFilterType().equals(SchemaFilterType.AND)) {
      final AndFilter andFilter = (AndFilter) schemaFilter;
      andFilter.getChildren().forEach(child -> internalExtract(result, child, filterType));
    }
  }
Extracts a certain type of SchemaFilter from the Filter tree.

@param filterType type
@return list of SchemaFilter with specific type
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/schema/filter/SchemaFilter.java