boolean (DataContext context) { Project project = CommonDataKeys.PROJECT.getData(context); if (project == null) return false; MavenProjectsManager mavenProjectsManager = MavenProjectsManager.getInstanceIfCreated(project); if (mavenProjectsManager == null) return false; return mavenProjectsManager.isMavenizedProject(); }