code: public function getFields()
      {
          if ($this->fields === null) {
              $fields       = $this->config['fields'] ?? [];
              $this->fields = FieldDefinition::defineFieldMap($this, $fields);
          }
  
          return $this->fields;
      }
docs: @return FieldDefinition[]
  
  @throws InvariantViolation