boolean (@NotNull MouseEvent e, int clickCount) { Component component = e.getComponent(); if (!(component instanceof ToolbarComboWidget comp)) return false; if (!comp.isEnabled()) return false; if (!comp.isExpandable()) { notifyPressListeners(e); return false; } if (!isSeparatorShown(comp)) { comp.doExpand(e); return true; } int leftPartWidth = comp.getWidth() - (getGapBeforeExpandIcon() + EXPAND_ICON.getIconWidth() + comp.getInsets().right); if (e.getPoint().x <= leftPartWidth) { notifyPressListeners(e); return false; } else { comp.doExpand(e); return true; } }