boolean (AnActionEvent e) { final MavenProjectsManager projectsManager = MavenActionUtil.getProjectsManager(e.getDataContext()); return projectsManager != null && projectsManager.getGeneralSettings().isWorkOffline(); }