paletteItems.add(pos - 1, createCategory(value.category, false));
break;
case PALETTE_ITEM_CLOSE:
pos = paletteItems.indexOf(value);
paletteItems.remove(pos);
BehaviorNodeComponent categoryItem = createCategory(value.category, true);
paletteItems.add(pos, categoryItem);
paletteItems.addAll(pos + 1, nodeFactory.getNodesComponents(value.category));
break;
default:
behaviorEditor.createNode(value);