void (final @NotNull PsiReferenceRegistrar registrar) { GenericValueReferenceProvider provider = new GenericValueReferenceProvider(); registrar.registerReferenceProvider(XmlPatterns.xmlTag(), provider); registrar.registerReferenceProvider(XmlPatterns.xmlAttributeValue(), provider); }