@Override
  public void update(@NotNull AnActionEvent e) {
    super.update(e);
    if (!isAvailable(e)) return;

    final DataContext context = e.getDataContext();
    MavenProjectsManager projectsManager = MavenActionUtil.getProjectsManager(context);
    if(projectsManager == null) return;
    List<MavenProject> projects = MavenActionUtil.getMavenProjects(context);

    if (isIgnoredInSettings(projectsManager, projects)) {
      e.getPresentation().setText(MavenProjectBundle.messagePointer("maven.ignore.edit"));
    }
    else if (isIgnored(projectsManager, projects)) {
      e.getPresentation().setText(MavenProjectBundle.messagePointer("maven.unignore"));
    }
    else {
      e.getPresentation().setText(MavenProjectBundle.messagePointer("maven.ignore"));
    }
  }
@Override
  public void update(@NotNull AnActionEvent e)