private Dimension calcPrefSize(ViewType viewType) {
    Dimension size = super.getPreferredSize();
    if (viewType == ViewType.SHORT) {
      size.height -= suggestionsPanel.getPreferredSize().height;
      if (ExperimentalUI.isNewUI()) {
        size.height -= JBUI.CurrentTheme.ComplexPopup.textFieldBorderInsets().bottom +
                       JBUI.scale(JBUI.CurrentTheme.ComplexPopup.TEXT_FIELD_SEPARATOR_HEIGHT);
      }
    }
    return size;
  }
private Dimension calcPrefSize(ViewType viewType)