public void addCommand(@NotNull ConsoleCommunication.ConsoleCodeFragment command) {
    QueueElementPanel elementPanel = new QueueElementPanel(command,
                                                           myService.isOneElement(communication)
                                                           ? new AnimatedIcon.Default()
                                                           : AllIcons.Nodes.EmptyNode);
    myQueueElementPanelMap.put(command, elementPanel);
    myPanel.add(elementPanel.getQueuePanel());

    if (myService.isOneElement(communication)) {
      elementPanel.unsetCancelButton();
      commandSelected(elementPanel);
    }
    if (myService.isTwoElement(communication)) {
      if (communication instanceof PythonDebugConsoleCommunication) {
        repaintAll();
        return;
      }
      if (!ApplicationManager.getApplication().isUnitTestMode()) {
        tooltip.show(getActionButton(), GotItTooltip.BOTTOM_MIDDLE);
      }
    }
    repaintAll();
  }
public void addCommand(@NotNull ConsoleCommunication.ConsoleCodeFragment command)