ComboBoxButton (@NotNull Presentation presentation) { return new ComboBoxButton(presentation) { @Override protected @NotNull JBPopup createPopup(Runnable onDispose) { JBPopup popup = createValueEditorPopup(myTarget, myValue.get(), onDispose, getDataContext(), o -> { myValue.set(o); updateText(presentation); }, myValue::commit); popup.setMinimumSize(new Dimension(getMinWidth(), getMinHeight())); return popup; } @Nullable @Override public String getToolTipText() { boolean cellEditor = UIUtil.uiParents(this, true).take(4).filter(JBTable.class).first() != null; return cellEditor ? null : getToolTipFor(myValue.get()); } }; }