boolean (GenericDomValue value) { VirtualFile virtualFile = DomUtil.getFile(value).getVirtualFile(); if (virtualFile == null) { return false; } MavenProjectsManager projectsManager = MavenProjectsManager.getInstance(value.getManager().getProject()); return projectsManager.findProject(virtualFile) != null; }