@Override
    public void update(@NotNull AnActionEvent e) {
        final Project project = e.getProject();
        e.getPresentation().setEnabled(project != null);
    }
@Override
    public void update(@NotNull AnActionEvent e)