code: public void generateSchema(SchemaGenerator generator) throws UnsupportedTypeException {
      if (inputs == null && outputs == null && inputTypes != null && outputTypes != null) {
        // Generate both inputs and outputs before making this visible
        Map<String, Set<Schema>> inputs = generateSchema(generator, inputTypes);
        Map<String, Set<Schema>> outputs = generateSchema(generator, outputTypes);
  
        this.inputs = inputs;
        this.outputs = outputs;
      }
    }
docs: Generate schemas for all input and output types with the given {@link SchemaGenerator}.
  @param generator The {@link SchemaGenerator} for generating type schema.