@Override
public LinkedList<GraphWrapper> getPrecedingElements() {
final LinkedList<GraphWrapper> precedingElements = new LinkedList<GraphWrapper>();
if (((INode) element).getParent() != null) {
INode parent = ((INode) element).getParent();
while (instanceOf(parent, Arrays.asList(NodeList.class,
NodeListOptional.class, NodeSequence.class,
NodeOptional.class, NodeChoice.class)))
parent = parent.getParent();
precedingElements.add(new GraphWrapperASTRIF(parent));
}
return precedingElements;