boolean (@NotNull DupInfo info, int index) { PsiFragment[] fragments = info.getFragmentOccurences(index); Language language = fragments.length > 0 ? fragments[0].getLanguage() : null; return language != null && isMyLanguage(language); }