private static boolean isElementInsideManagedFile(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;
  }
private static boolean isElementInsideManagedFile(GenericDomValue value)