void (@NotNull AnActionEvent e) { super.update(e); boolean makesSense = !ExperimentalUI.isNewUI() && (SystemInfo.isWindows || (SystemInfo.isLinux && !GlobalMenuLinux.isPresented())); e.getPresentation().setEnabledAndVisible(makesSense); }