void (@NotNull MouseEvent e) { IdeEventQueue.getInstance().blockNextEvents(e); final Component c = e.getComponent(); if (c instanceof BaseLabel tab) { if (tab.getContent() != null) { if (contentManager.canCloseContents() && tab.getContent().isCloseable()) { contentManager.removeContent(tab.getContent(), true, true, true); } else { if (contentManager.getContentCount() == 1) { hideWindow(e); } } } else { hideWindow(e); } } else { hideWindow(e); } }