code: def create_content(self, cli, width, height):
          
          complete_state = cli.current_buffer.complete_state
          if complete_state:
              completions = complete_state.current_completions
              index = complete_state.complete_index  # Can be None!
  
              # Calculate width of completions menu.
              menu_width = self._get_menu_width(width, complete_state)
              menu_meta_width = self._get_menu_meta_width(width - menu_width, complete_state)
              show_meta = self._show_meta(complete_state)
  
              def get_line(i):
                  c = completions[i]
                  is_current_completion = (i == index)
                  result = self._get_menu_item_tokens(c, is_current_completion, menu_width)
  
                  if show_meta:
                      result += self._get_menu_item_meta_tokens(c, is_current_completion, menu_meta_width)
                  return result
  
              return UIContent(get_line=get_line,
                               cursor_position=Point(x=0, y=index or 0),
                               line_count=len(completions),
                               default_char=Char(' ', self.token))
  
          return UIContent()
docs: Create a UIContent object for this control.