ComponentNode (@NotNull Accessible accessible) { String name = accessible.getClass().getName(); JComponent component = ObjectUtils.tryCast(accessible, JComponent.class); ComponentNode node = new ComponentNode(component, accessible, name, true); TreeUtil.addChildrenTo(node, prepareAccessibleChildren(accessible)); return node; }