static forceSelection(
    editorState: EditorState,
    selection: SelectionState,
  ): EditorState {
    if (!selection.getHasFocus()) {
      selection = selection.set('hasFocus', true);
    }
    return updateSelection(editorState, selection, true);
  }
At times, we need to force the DOM selection to be where we
need it to be. This can occur when the anchor or focus nodes
are non-text nodes, for instance. In this case, we want to trigger
a re-render of the editor, which in turn forces selection into
the correct place in the DOM. The `forceSelection` method
accomplishes this.

This method should be used in cases where you need to explicitly
move the DOM selection from one place to another without a change
in ContentState.