RadComponent (Object value) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)value; Object userObject = node.getUserObject(); if (myDesigner != null && userObject instanceof TreeNodeDescriptor descriptor) { Object element = descriptor.getElement(); if (element instanceof RadComponent) { return (RadComponent)element; } } return null; }