String (@NotNull Project project, @NotNull VirtualFile file) { MavenProjectsManager projectsManager = MavenProjectsManager.getInstance(project); if (!projectsManager.isMavenizedProject()) return null; MavenProject mavenProject = projectsManager.findProject(file); if (mavenProject != null) { String name = file.getName() + " (" + mavenProject.getMavenId().getArtifactId() + ")"; if (projectsManager.isIgnored(mavenProject)) { return MavenProjectBundle.message("tab.title.ignored", name); } return name; } return null; }