getCurrentInlineStyle(): DraftInlineStyle {
    const override = this.getInlineStyleOverride();
    if (override != null) {
      return override;
    }

    const content = this.getCurrentContent();
    const selection = this.getSelection();

    if (selection.isCollapsed()) {
      return getInlineStyleForCollapsedSelection(content, selection);
    }

    return getInlineStyleForNonCollapsedSelection(content, selection);
  }
Get the appropriate inline style for the editor state. If an
override is in place, use it. Otherwise, the current style is
based on the location of the selection state.