@Override
                           public Component getListCellRendererComponent(JList<? extends AnAction> list,
                                                                         AnAction value,
                                                                         int index,
                                                                         boolean isSelected,
                                                                         boolean cellHasFocus) {
                             var component = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
                             // Collapsable group should be rendered as collapsable button
                             if (value instanceof CollapsedActionGroup actionGroup) {
                               return CollapsedButtonKt.createCollapsedButton(actionGroup, childAction -> {
                                 // To get an action width we set to the component, render it, and see component width
                                 // This approach obeys component spacing, font's size e.t.c
                                 setLabelByAction(childAction);
                                 return component.getPreferredSize().width;
                               });
                             }
                             return component;
                           }
@Override
                           public Component getListCellRendererComponent(JList<? extends AnAction> list,
                                                                         AnAction value,
                                                                         int index,
                                                                         boolean isSelected,
                                                                         boolean cellHasFocus)