@Override
      public void mousePressed(@NotNull MouseEvent e) {
        if (!UIUtil.isCloseClick(e) || !e.isConsumed()) {
          return;
        }
        TabInfo tabInfo = tabs.findInfo(e);
        GridImpl grid = tabInfo == null ? null : getGridFor(tabInfo);
        Content[] contents = grid != null ? grid.getContents().toArray(new Content[0]) : null;
        if (contents == null) return;
        // see GridCellImpl.closeOrMinimize as well
        if (CloseViewAction.isEnabled(contents)) {
          CloseViewAction.perform(RunnerContentUi.this, contents[0]);
        }
        else if (MinimizeViewAction.isEnabled(RunnerContentUi.this, contents, TAB_TOOLBAR_PLACE)) {
          grid.getCellFor(contents[0]).minimize(contents[0]);
        }
      }
@Override
      public void mousePressed(@NotNull MouseEvent e)