@Override
    public void close(@NotNull TabInfo tab) {
      GridImpl grid = (GridImpl)tab.getComponent();
      ViewContext context = grid.getViewContext();
      List<Content> content = grid.getContents();
      if (content.isEmpty()) {
        SingleContentSupplier.super.close(tab);
        return;
      }
      context.getContentManager().removeContent(content.get(0), context.isToDisposeRemovedContent());
    }
@Override
    public void close(@NotNull TabInfo tab)