@NotNull
  @Override
  protected JComponent createHeader() {
    createTextFieldTitle();

    JPanel result = new JPanel();
    RowBuilder builder = new RowBuilder(result);
    builder.addResizable(myTextFieldTitle);

    DefaultActionGroup actionGroup = new DefaultActionGroup();
    myChooseContextAction = new RunAnythingChooseContextAction(result) {
      @Override
      public void setAvailableContexts(@NotNull List<? extends RunAnythingContext> executionContexts) {
        myAvailableExecutingContexts.clear();
        myAvailableExecutingContexts.addAll(executionContexts);
      }

      @NotNull
      @Override
      public List<RunAnythingContext> getAvailableContexts() {
        return myAvailableExecutingContexts;
      }

      @Override
      public void setSelectedContext(@Nullable RunAnythingContext context) {
        mySelectedExecutingContext = context;
      }

      @Nullable
      @Override
      public RunAnythingContext getSelectedContext() {
        return mySelectedExecutingContext;
      }
    };
    actionGroup.addAction(myChooseContextAction);
    actionGroup.addAction(new RunAnythingShowFilterAction());

    ActionToolbar toolbar = ActionManager.getInstance().createActionToolbar("run.anything.toolbar", actionGroup, true);
    toolbar.setTargetComponent(mySearchField);
    toolbar.setLayoutStrategy(ToolbarLayoutStrategy.NOWRAP_STRATEGY);
    JComponent toolbarComponent = toolbar.getComponent();
    toolbarComponent.setOpaque(false);

    if (ExperimentalUI.isNewUI()) {
      myTextFieldTitle.setBorder(PopupUtil.getComplexPopupVerticalHeaderBorder());
      toolbarComponent.setBorder(null);
      result.setBorder(JBUI.Borders.compound(
        JBUI.Borders.customLine(JBUI.CurrentTheme.CustomFrameDecorations.separatorForeground(), 0, 0, 1, 0),
        PopupUtil.getComplexPopupHorizontalHeaderBorder()));
    }
    else {
      result.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 0));
    }

    builder.add(toolbarComponent);
    return result;
  }
@NotNull
  @Override
  protected JComponent createHeader()