private static boolean isEnabled(AnActionEvent e) {
    if(!MavenActionUtil.hasProject(e.getDataContext())) return false;
    final MavenProjectsManager projectsManager = MavenActionUtil.getProjectsManager(e.getDataContext());
    return projectsManager != null && projectsManager.isMavenizedProject();
  }
private static boolean isEnabled(AnActionEvent e)