private static void clearVariants(@NotNull JsonSchemaObject object) {
    if (!(object instanceof JsonSchemaObjectImpl cst)) {
      return;
    }
    cst.setAllOf(null);
    cst.setAnyOf(null);
    cst.setOneOf(null);
  }
private static void clearVariants(@NotNull JsonSchemaObject object)