@Override
  protected JComponent createCenterPanel() {
    JPanel panel;
    
    if (myUpdatedDialog && myElementConflictDescription != null) {
      panel = new JPanel(new BorderLayout());
      UsageViewPresentation presentation = new UsageViewPresentation();
      presentation.setMergeDupLinesAvailable(false);
      presentation.setExcludeAvailable(false);
      presentation.setNonCodeUsageAvailable(false);
      UsageViewImpl usageView = (UsageViewImpl)UsageViewManager.getInstance(myProject)
        .createUsageView(UsageTarget.EMPTY_ARRAY, createUsages(), presentation, null);
      Disposer.register(getDisposable(), usageView);
      myTree = usageView.getTree();
      myTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
      for (MouseListener listener : myTree.getMouseListeners()) {
        if (listener instanceof PopupHandler) {
          myTree.removeMouseListener(listener);
          break;
        }
      }

      SimpleColoredComponent previewTitle = new SimpleColoredComponent();
      PopupUtil.applyPreviewTitleInsets(previewTitle);
      UsagePreviewPanel usagePreviewPanel = new UsagePreviewPanel(myProject, presentation);
      Disposer.register(getDisposable(), usagePreviewPanel);
      usagePreviewPanel.setShowTooltipBalloon(true);
      myTree.addTreeSelectionListener(e -> previewNode(myProject, e.getNewLeadSelectionPath(), usagePreviewPanel, previewTitle));
      
      JPanel previewPanel = new JPanel(new BorderLayout());
      if (ExperimentalUI.isNewUI()) previewPanel.setBackground(JBUI.CurrentTheme.Popup.BACKGROUND);
      previewPanel.add(previewTitle, BorderLayout.NORTH);
      previewPanel.add(usagePreviewPanel, BorderLayout.CENTER);

      class MySplitter extends OnePixelSplitter implements DataProvider {

        MySplitter() {
          super(true, "conflicts.dialog.splitter", 0.4f);
        }

        @Override
        public @Nullable Object getData(@NotNull String dataId) {
          return UsageView.USAGE_VIEW_SETTINGS_KEY.is(dataId) ? usageView.getUsageViewSettings() : null;
        }
      }
      Splitter splitter = new MySplitter();
      splitter.setFirstComponent(ScrollPaneFactory.createScrollPane(myTree, true));
      splitter.setSecondComponent(previewPanel);

      CommonActionsManager actionsManager = CommonActionsManager.getInstance();
      JPanel toolbarPanel = new JPanel(new BorderLayout());
      Border line = new CustomLineBorder(OnePixelDivider.BACKGROUND, 0, 0, 1, 0);
      toolbarPanel.setBorder(line);
      DefaultActionGroup groupBy = new DefaultActionGroup(createGroupingActions(usageView, splitter));
      groupBy.setPopup(true);
      groupBy.getTemplatePresentation().setIcon(AllIcons.Actions.GroupBy);
      groupBy.getTemplatePresentation().setText(UsageViewBundle.messagePointer("action.group.by.title"));
      ConflictOccurenceNavigatorSupport occurenceNavigator = new ConflictOccurenceNavigatorSupport(myTree);
      AnAction prevOccurenceAction = actionsManager.createPrevOccurenceAction(occurenceNavigator);
      prevOccurenceAction.registerCustomShortcutSet(myTree, getDisposable());
      AnAction nextOccurenceAction = actionsManager.createNextOccurenceAction(occurenceNavigator);
      nextOccurenceAction.registerCustomShortcutSet(myTree, getDisposable());
      DefaultActionGroup toolbarGroup = new DefaultActionGroup(
        prevOccurenceAction,
        nextOccurenceAction,
        new Separator(),
        groupBy,
        actionsManager.createExpandAllHeaderAction(myTree),
        actionsManager.createCollapseAllHeaderAction(myTree)
      );
      ActionManager actionManager = ActionManager.getInstance();
      ActionToolbarImpl toolbar = (ActionToolbarImpl)actionManager.createActionToolbar("ConflictsDialog", toolbarGroup, true);
      toolbar.setTargetComponent(myTree);

      toolbarPanel.add(toolbar.getComponent(), BorderLayout.WEST);
      JLabel conflictsLabel = new JLabel(RefactoringBundle.message("conflicts.count.label", myElementConflictDescription.values().size()));
      conflictsLabel.setBorder(new JBEmptyBorder(UIUtil.PANEL_REGULAR_INSETS));
      toolbarPanel.add(conflictsLabel, BorderLayout.EAST);
      SwingUtilities.invokeLater(() -> previewNode(myProject, myTree.getSelectionPath(), usagePreviewPanel, previewTitle));
      
      panel.add(splitter, BorderLayout.CENTER);
      panel.add(toolbarPanel, BorderLayout.NORTH);
    }
    else {
      panel = new JPanel(new BorderLayout(0, 2));
      panel.add(new JLabel(RefactoringBundle.message("the.following.problems.were.found")), BorderLayout.NORTH);

      HtmlBuilder buf = new HtmlBuilder();
      for (int i = 0; i < Math.min(myConflictDescriptions.length, MAX_CONFLICTS_SHOWN); i++) {
        buf.appendRaw(myConflictDescriptions[i]).br().br();
      }
      if (myConflictDescriptions.length > MAX_CONFLICTS_SHOWN) {
        buf.appendLink(EXPAND_LINK, RefactoringBundle.message("show.more.conflicts.link"));
      }

      JEditorPane messagePane = new JEditorPane();
      messagePane.setEditorKit(HTMLEditorKitBuilder.simple());
      messagePane.setText(buf.toString());
      messagePane.setEditable(false);
      JScrollPane scrollPane = ScrollPaneFactory.createScrollPane(messagePane,
                                                                  ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
                                                                  ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
      scrollPane.setPreferredSize(JBUI.size(500, 400));
      messagePane.addHyperlinkListener(e -> {
        if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED && EXPAND_LINK.equals(e.getDescription())) {
          messagePane.setText(StringUtil.join(myConflictDescriptions, "<br><br>"));
        }
      });
      panel.add(scrollPane, BorderLayout.CENTER);

      if (getOKAction().isEnabled()) {
        panel.add(new JLabel(RefactoringBundle.message("do.you.wish.to.ignore.them.and.continue")), BorderLayout.SOUTH);
      }
    }
    return panel;
  }
@Override
  protected JComponent createCenterPanel()