@Override
  public void setSelected(@NotNull AnActionEvent e, boolean state) {
    final MavenProjectsManager projectsManager = MavenActionUtil.getProjectsManager(e.getDataContext());
    if (projectsManager != null) {
      projectsManager.getGeneralSettings().setWorkOffline(state);
    }
  }
@Override
  public void setSelected(@NotNull AnActionEvent e, boolean state)