VariableContext () { return new XsltVariableContext() { @Override @Nullable protected XmlTag getContextTagImpl(XPathElement element) { return PsiTreeUtil.getParentOfType(getContextElement(), XmlTag.class, false); } @Override public IntentionAction @NotNull [] getUnresolvedVariableFixes(XPathVariableReference reference) { return IntentionAction.EMPTY_ARRAY; } }; }