void (Object component) { if (component instanceof ActionToolbarImpl toolbar) { myProperties.addAll(UiInspectorUtil.collectActionGroupInfo("Toolbar", toolbar.getActionGroup(), toolbar.getPlace())); JComponent targetComponent = ReflectionUtil.getField(ActionToolbarImpl.class, toolbar, JComponent.class, "myTargetComponent"); if (targetComponent != null) { myProperties.add(new PropertyBean("Target component", targetComponent.toString(), true)); } } }