JButton (@NotNull ComboBox<?> sdkComboBox, @NotNull Consumer<JButton> onShowDetails) { final FixedSizeButton result = new FixedSizeButton(sdkComboBox.getPreferredSize().height); result.setIcon(AllIcons.General.GearPlain); result.addActionListener(e -> onShowDetails.accept(result)); return result; }