}
private GraphNodeUi2D createOperationNodeUi(Graph2D graph, OperationWrapperNode opNode) {
boolean expanded = shouldOpNodeBeExpanded(graph, opNode);
if (expanded) {
return new ExpandedOperationNodeUi(graph, opNode);
} else {
return new CollapsedOperationNodeUi(graph, opNode);
}
}