//
PsiJavaPatterns.psiElement(PsiLiteralExpression.class).withParent(PsiExpressionList.class).withSuperParent(2, PsiCallExpression.class),
// for Anonymous create like Link's...
PsiJavaPatterns.psiElement(PsiLiteralExpression.class).withParent(PsiExpressionList.class).withSuperParent(2, PsiAnonymousClass.class).withSuperParent(3, PsiCallExpression.class)
);
registrar.registerReferenceProvider(pattern, new ClassWicketIdReferenceProvider());
}
{// html -> wicket:id
XmlAttributeValuePattern pattern = XmlPatterns.xmlAttributeValue(XmlPatterns.xmlAttribute().withName(Constants.WICKET_ID));
registrar.registerReferenceProvider(pattern, new MarkupWicketIdReferenceProvider());