void () { MyHorizontalStackInspection inspection = new MyHorizontalStackInspection(); JComponent component = render(inspection); var checkBoxes = UIUtil.findComponentsOfType(component, JCheckBox.class); assertEquals(1, checkBoxes.size()); var integerFields = UIUtil.findComponentsOfType(component, JBTextField.class); assertEquals(1, integerFields.size()); // Split label support var labels = UIUtil.findComponentsOfType(component, JLabel.class); assertEquals(2, labels.size()); }