PsiFile markup = MarkupIndex.getBaseFile(psiClass);
if (markup != null) {
// ... before we search for our parent Item
String parentPath = HierarchyUtil.findPathOf(psiClass, wicketIdExpression, true, true);
if (parentPath != null) {
MarkupWicketIdItem item = MarkupWicketIdHierarchy.create((XmlFile) markup).getWicketIdPathMap().get(parentPath);
if (item != null) {
for (MarkupWicketIdItem child : item.getChildren()) {
rs.addElement(
LookupElementBuilder.create(child.getWicketId())
//.withIcon(child.getIcon()) // child's icon bother view -> use generic icon
.withIcon(Constants.WICKET_COMPONENT_ICON)
.withTypeText(".html")