@Override
          public void beforeActionPerformed(@NotNull AnAction action, @NotNull AnActionEvent event) {
            if (event.getDataContext().getData(PlatformCoreDataKeys.CONTEXT_COMPONENT) == SplitButton.this) {
              selectedAction = action;
              copyPresentation(event.getPresentation());
              repaint();
            }
          }
@Override
          public void beforeActionPerformed(@NotNull AnAction action, @NotNull AnActionEvent event)