JComponent () { Component inheritBox = createOverwriteCheckBox(); if (inheritBox != null) { JPanel topPanel = new JPanel(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); c.gridx = 0; c.gridy = 0; c.gridwidth = 2; c.insets = JBUI.insets(BASE_INSET * 2, BASE_INSET, ADDITIONAL_VERTICAL_GAP, 0); c.anchor = GridBagConstraints.LINE_START; topPanel.add(inheritBox, c); c.gridy = 1; c.gridx = 0; c.gridwidth = 1; c.insets = JBInsets.emptyInsets(); topPanel.add(Box.createRigidArea(JBDimension.create(new Dimension(FONT_PANEL_LEFT_OFFSET, 0))), c); c.gridx = 1; c.anchor = GridBagConstraints.NORTHWEST; topPanel.add(createBaseAndSecondaryFontPanel(), c); return topPanel; } else { return super.createControls(); } }