ComponentNode (@NotNull Component component, boolean isAccessibleComponent) { String name = component.getClass().getName(); Accessible accessible = ObjectUtils.tryCast(component, Accessible.class); ComponentNode node = new ComponentNode(component, accessible, name, isAccessibleComponent); if (isAccessibleComponent) { TreeUtil.addChildrenTo(node, prepareAccessibleChildren(accessible)); } else { TreeUtil.addChildrenTo(node, prepareComponentChildren(component)); } return node; }