private static @NotNull DefaultActionGroup createTabActions(@NotNull IdeFrameImpl tabFrame) {
    DumbAwareAction closeAction = new DumbAwareAction(IdeBundle.message("mac.window.tabs.close.title")) {
      @Override
      public @NotNull ActionUpdateThread getActionUpdateThread() {
        return ActionUpdateThread.EDT;
      }

      @Override
      public void actionPerformed(@NotNull AnActionEvent e) {
        closeTab(tabFrame, (e.getModifiers() & ActionEvent.ALT_MASK) != 0);
      }
    };

    Presentation presentation = closeAction.getTemplatePresentation();
    boolean isNewUi = ExperimentalUI.isNewUI();
    presentation.setIcon(isNewUi ?
                         IconManager.getInstance().getIcon("expui/general/closeSmall_dark.svg", AllIcons.class.getClassLoader()) :
                         AllIcons.Actions.Close);
    presentation.setHoveredIcon(isNewUi
                                ? IconManager.getInstance()
                                  .getIcon("expui/general/closeSmallHovered_dark.svg", AllIcons.class.getClassLoader())
                                : AllIcons.Actions.CloseHovered);

    DefaultActionGroup group = new DefaultActionGroup();
    group.add(closeAction);

    return group;
  }
private static @NotNull DefaultActionGroup createTabActions(@NotNull IdeFrameImpl tabFrame)