private @Nullable JComponent createTopPanel() {
    //if (UIExperiment.isNewDebuggerUIEnabled()) {
      XDebuggerTree tree = getTree();
      Ref<AnAction> addToWatchesActionRef = new Ref<>();
      XDebuggerEditorsProvider provider = tree.getEditorsProvider();
      if (!provider.isEvaluateExpressionFieldEnabled()) {
        return null;
      }
      myEvaluateComboBox =
        new XDebuggerExpressionComboBox(tree.getProject(), provider, "evaluateExpression", null, false, true) {
          @Override
          protected ComboBox<XExpression> createComboBox(CollectionComboBoxModel<XExpression> model, int width) {
            AnAction addToWatchesAction =
              new DumbAwareAction(ActionsBundle.actionText(XDebuggerActions.ADD_TO_WATCH), null, AllIcons.Debugger.AddToWatch) {
                @Override
                public void actionPerformed(@NotNull AnActionEvent e) {
                  myEvaluateComboBox.saveTextInHistory();
                  addWatchExpression(getExpression(), -1, false);
                  DebuggerEvaluationStatisticsCollector.WATCH_FROM_INLINE_ADD.log(e);
                }

                @Override
                public void update(@NotNull AnActionEvent e) {
                  e.getPresentation().setEnabled(!XDebuggerUtilImpl.isEmptyExpression(getExpression()));
                }

                @Override
                public @NotNull ActionUpdateThread getActionUpdateThread() {
                  return ActionUpdateThread.BGT;
                }
              };
            ActionToolbarImpl toolbar = (ActionToolbarImpl)ActionManager.getInstance()
              .createActionToolbar("DebuggerVariablesEvaluate", new DefaultActionGroup(addToWatchesAction), true);
            addToWatchesActionRef.set(addToWatchesAction);
            toolbar.setOpaque(false);
            toolbar.setReservePlaceAutoPopupIcon(false);
            toolbar.setTargetComponent(tree);
            XDebuggerEmbeddedComboBox<XExpression> comboBox = new XDebuggerEmbeddedComboBox<>(model, width);
            comboBox.setExtension(toolbar);
            return comboBox;
          }

          @Override
          protected void prepareEditor(EditorEx editor) {
            super.prepareEditor(editor);
            editor.setPlaceholder(XDebuggerBundle.message(
              "debugger.evaluate.expression.or.add.a.watch.hint",
              KeymapUtil.getShortcutText(new KeyboardShortcut(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), null)),
              KeymapUtil.getShortcutText(new KeyboardShortcut(XDebuggerEvaluationDialog.getAddWatchKeystroke(), null))
            ));
            editor.addFocusListener(new FocusChangeListener() {
              private static final Set<FocusEvent.Cause> myCauses = Set.of(
                FocusEvent.Cause.UNKNOWN,
                FocusEvent.Cause.TRAVERSAL_FORWARD,
                FocusEvent.Cause.TRAVERSAL_BACKWARD
              );

              @Override
              public void focusGained(@NotNull Editor editor, @NotNull FocusEvent event) {
                if (myCauses.contains(event.getCause())) {
                  boolean shouldBeIgnored = myEvaluateComboBox.getComboBox().isPopupVisible();
                  if (!shouldBeIgnored) {
                    DebuggerEvaluationStatisticsCollector.INPUT_FOCUS.log(getTree().getProject());
                  }
                }
              }
            });
          }
        };
      final JComponent editorComponent = myEvaluateComboBox.getEditorComponent();
      editorComponent.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)
        .put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "enterStroke");
      editorComponent.getActionMap().put("enterStroke", new AbstractAction() {
        @Override
        public void actionPerformed(ActionEvent e) {
          // This listener overrides one from BasicComboBoxUI$Actions
          // Close popup manually instead of default handler
          if (myEvaluateComboBox.getComboBox().isPopupVisible()) {
            myEvaluateComboBox.getComboBox().setPopupVisible(false);
          }
          else {
            addExpressionResultNode();
          }
        }
      });
      editorComponent.setBackground(EVALUATE_FIELD_BACKGROUND_COLOR);

      myEvaluateComboBox.getComboBox().addPopupMenuListener(new PopupMenuListenerAdapter() {
        private int selectedIndexOnPopupOpen = -1;

        @Override
        public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
          selectedIndexOnPopupOpen = myEvaluateComboBox.getComboBox().getSelectedIndex();
          myEvaluateComboBox.requestFocusInEditor();
          DebuggerEvaluationStatisticsCollector.HISTORY_SHOW.log(getTree().getProject());
        }

        @Override
        public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
          if (myEvaluateComboBox.getComboBox().getSelectedIndex() != selectedIndexOnPopupOpen) {
            DebuggerEvaluationStatisticsCollector.HISTORY_CHOOSE.log(getTree().getProject());
          }
        }
      });
      addToWatchesActionRef.get()
        .registerCustomShortcutSet(new CustomShortcutSet(XDebuggerEvaluationDialog.getAddWatchKeystroke()), editorComponent);
      JComponent component = myEvaluateComboBox.getComponent();
      //component.setBackground(tree.getBackground());
      component.setBorder(JBUI.Borders.customLine(JBColor.border(), 0, 0, 1, 0));
      if (!UIExperiment.isNewDebuggerUIEnabled()) {
        XToggleEvaluateExpressionFieldAction.markAsEvaluateExpressionField(component);
      }
      return component;
    //}
    //return null;
  }
private @Nullable JComponent createTopPanel()