public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) {
Component result = super.getTreeCellEditorComponent(tree, value, isSelected, expanded, leaf, row);
TreePath path = tree.getPathForRow(row);
if (path.getParentPath().getLastPathComponent() instanceof Property && value instanceof Value) {
Value node = (Value) value;
Object o = node.getObject();
if (o instanceof NullValue) {
Class<?> type = ((Property) path.getParentPath().getLastPathComponent()).getType();
o = MainHandler.getInstance().getDefaultValue(type);
}