private TerminalPromptStyle getSelectedPromptStyle() {
    if (mySingleLineButton.isSelected()) {
      return TerminalPromptStyle.SINGLE_LINE;
    }
    else if (myDoubleLineButton.isSelected()) {
      return TerminalPromptStyle.DOUBLE_LINE;
    }
    else if (myShellPromptButton.isSelected()) {
      return TerminalPromptStyle.SHELL;
    }
    throw new IllegalStateException("None of prompt style radio buttons are selected");
  }
private TerminalPromptStyle getSelectedPromptStyle()