boolean (PsiElement target) { if (target instanceof MavenPsiElementWrapper) return true; PsiFile file = target.getContainingFile(); return MavenDomUtil.isProjectFile(file) || MavenDomUtil.isProfilesFile(file); }