boolean (@NotNull AnActionEvent e) { if (!super.isVisible(e)) return false; final DataContext context = e.getDataContext(); final Project project = getProject(context); if (project == null) return false; List<VirtualFile> selectedFiles = MavenActionUtil.getMavenProjectsFiles(context); if (selectedFiles.size() == 0) return false; MavenProjectsManager projectsManager = MavenProjectsManager.getInstance(project); for (VirtualFile pomXml : selectedFiles) { MavenProject mavenProject = projectsManager.findProject(pomXml); if (mavenProject == null) return false; if (projectsManager.isIgnored(mavenProject)) return false; } return true; }