private static Predicate<PsiElement> getElementPredicate() {
    return (e) -> {
      Language language = e.getLanguage();
      return !(language instanceof XMLLanguage || language.isKindOf(XMLLanguage.INSTANCE));
    };
  }
private static Predicate<PsiElement> getElementPredicate()