code: protected function generateOption($key, $value)
      {
          $option = new FieldOption();
          $option->setKey($key);
          $option->setValue($value);
  
          return $option;
      }
docs: Generate a field option
  
  @param string $key
  @param string|int|array $value
  
  @return FieldOption