@Override
    public void actionPerformed(@NotNull AnActionEvent e) {
      setExpanded(!myIsExpanded);
      InputEvent event = e.getInputEvent();
      if (event == null) {
        return; // Enter - 'KeepingPopupOpenAction' logic should refilter the list
      }

      Object source = event.getSource();
      if (source instanceof JList) {
        ListModel<?> model = ((JList<?>)source).getModel();
        if (model instanceof ListPopupModel) {
          ((ListPopupModel<?>)model).refilter();
          return;
        }
      }
      LOG.warn("Can't' refilter popup after 'More branches' toggle, event: " + event);
    }
@Override
    public void actionPerformed(@NotNull AnActionEvent e)