void (@NotNull TabInfo tab) { GridImpl grid = (GridImpl)tab.getComponent(); ViewContext context = ViewContext.CONTEXT_KEY.getData(grid); Content[] content = ViewContext.CONTENT_KEY.getData(grid); if (context == null || content == null || content.length == 0) { SingleContentSupplier.super.close(tab); return; } context.getContentManager().removeContent(content[0], context.isToDisposeRemovedContent()); }