boolean (Object element, PsiElement context) { final PsiElement parent = context.getParent(); if (parent instanceof XmlAttribute attribute) { return attribute.isNamespaceDeclaration(); } return false; }