void (@NotNull AnActionEvent e) { final Project project = e.getProject(); UISettings settings = UISettings.getInstance(); final boolean enabled = project != null && NavBarIdeUtil.isNavbarShown(settings); e.getPresentation().setEnabled(enabled); }