Dimension (JComponent c, Dimension prefSize) { if (UIUtil.isHelpButton(c)) { Icon icon = MacIconLookup.getIcon("help"); return new Dimension(icon.getIconWidth(), icon.getIconHeight()); } else { return super.getDarculaButtonSize(c, prefSize); } }