Language (@NotNull PsiElement element) { final DuplicatesProfile profile = DuplicatesProfile.findProfileForLanguage(element.getLanguage()); if (profile == null) { return element.getLanguage(); } return profile.getLanguage(element); }