private static @Nls String getText(ToolbarComboWidget widget) {
    View v = (View)widget.getClientProperty(BasicHTML.propertyKey);
    if (v != null) {
      try {
        @NlsSafe String text = (v.getDocument().getText(0, v.getDocument().getLength())).strip();
        return text;
      }
      catch (BadLocationException ignored) {
      }
    }

    return widget.getText();
  }
private static @Nls String getText(ToolbarComboWidget widget)