public PsiElement resolve() {
PsiFile markupFile = MarkupIndex.getBaseFile(psiClass);
if (markupFile != null) {
String path = HierarchyUtil.findPathOf(psiClass, wicketIdExpression, false, false);
if (path != null) {
MarkupWicketIdHierarchy hierarchy = MarkupWicketIdHierarchy.create((XmlFile) markupFile);
MarkupWicketIdItem item = hierarchy.getWicketIdPathMap().get(path);
if (item != null) {
return item.getAttributeValue();
}
}
}