@Override
      public void actionPerformed(@NotNull AnActionEvent e) {
        Tool originalTool = getSelectedTool();

        if (originalTool != null) {
          ToolEditorDialog dlg = createToolEditorDialog(ToolsBundle.message("tools.copy.title"));
          Tool toolCopy = dlg.createTool();
          toolCopy.copyFrom(originalTool);
          dlg.setData(toolCopy, getGroups());
          if (dlg.showAndGet()) {
            insertNewTool(dlg.getData(), true);
          }
          IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> IdeFocusManager.getGlobalInstance().requestFocus(myTree, true));
        }
      }
@Override
      public void actionPerformed(@NotNull AnActionEvent e)