return ArrayUtil.toObjectArray(list);
}
@Override
public PsiElement handleElementRename(String newElementName) throws IncorrectOperationException {
BnfListEntry element = getElement();
PsiElement id = ObjectUtils.assertNotNull(element.getId());
id.replace(BnfElementFactory.createLeafFromText(element.getProject(), newElementName));
return element;
}
}
};
}