private static boolean interestingSchema(@NotNull JsonSchemaObject schema) {
    boolean hasAggregators;
    if (Registry.is("json.schema.object.v2")) {
      hasAggregators =
        schema.hasChildNode(ANY_OF) || schema.hasChildNode(ONE_OF) || schema.hasChildNode(ALL_OF) || schema.hasChildNode(IF);
    }
    else {
      hasAggregators = schema.getAnyOf() != null || schema.getOneOf() != null || schema.getAllOf() != null;
    }
    return hasAggregators || schema.getRef() != null || schema.getIfThenElse() != null;
  }
private static boolean interestingSchema(@NotNull JsonSchemaObject schema)