void () { DefaultActionGroup group = new DefaultActionGroup(); group.add(new DumbAwareAction(IdeBundle.message("mac.window.tabs.close.tab")) { @Override public void actionPerformed(@NotNull AnActionEvent e) { closeTab(getPopupFrame(e), false); } }); group.add(new DumbAwareAction(IdeBundle.message("mac.window.tabs.close.other.tabs")) { @Override public void actionPerformed(@NotNull AnActionEvent e) { closeTab(getPopupFrame(e), true); } }); group.add(new DumbAwareAction(IdeBundle.message("mac.window.tabs.move.tab")) { @Override public void actionPerformed(@NotNull AnActionEvent e) { moveTabToNewWindow(getPopupFrame(e)); } }); group.add(new DumbAwareAction(IdeBundle.message("mac.window.tabs.show.all.tabs")) { @Override public void actionPerformed(@NotNull AnActionEvent e) { IdeFrameImpl tabFrame = getPopupFrame(e); Foundation.executeOnMainThread(true, false, () -> { ID window = MacUtil.getWindowFromJavaWindow(tabFrame); ID tabs = Foundation.invoke(window, "tabbedWindows"); int count = Foundation.invoke(tabs, "count").intValue(); for (int i = 0; i < count; i++) { ID tab = Foundation.invoke(tabs, "objectAtIndex:", i); Foundation.invoke(tab, "setTabOverviewVisible:", 1); } }); } }); setPopupGroup(group, ActionPlaces.POPUP, false); }