boolean (@NotNull AnActionEvent e) { if (!super.isAvailable(e)) return false; MavenProjectsManager manager = MavenActionUtil.getProjectsManager(e.getDataContext()); if (manager == null) return false; if (manager.getAvailableProfiles().isEmpty()) return false; MavenExplicitProfiles explicitProfiles = manager.getExplicitProfiles(); return !explicitProfiles.getEnabledProfiles().isEmpty() || !explicitProfiles.getDisabledProfiles().isEmpty(); }