protected final JPanel createFontSettingsPanel() {
    Insets baseInsets = getInsets(0, 0);

    JPanel fontPanel = new JPanel(new GridBagLayout());
    GridBagConstraints c = new GridBagConstraints();
    c.anchor = GridBagConstraints.WEST;
    c.insets = baseInsets;

    c.gridx = 0;
    c.gridy = 0;
    fontPanel.add(myPrimaryLabel, c);

    c.gridx = 1;
    fontPanel.add(myPrimaryCombo, c);

    c.gridx = 1;
    c.gridy ++;
    c.insets = getInsets(0, BASE_INSET);
    fontPanel.add(myOnlyMonospacedCheckBox, c);

    c.gridx = 0;
    c.gridy ++;
    c.insets = baseInsets;
    fontPanel.add(mySizeLabel, c);

    c.gridx = 1;

    JPanel sizePanel = new JPanel();
    FlowLayout sizeLayout = new FlowLayout(FlowLayout.LEFT);
    sizeLayout.setHgap(0);
    sizePanel.setLayout(sizeLayout);
    sizePanel.setBorder(JBUI.Borders.empty());
    sizePanel.add(myEditorFontSizeField);
    sizePanel.add(Box.createHorizontalStrut(20));
    sizePanel.add(myLineSpacingLabel);
    sizePanel.add(myLineSpacingField);
    fontPanel.add(sizePanel,c);

    c.gridy ++;
    c.gridx = 0;
    c.insets = getInsets(ADDITIONAL_VERTICAL_GAP, 0);

    JPanel panel = new JPanel(new FlowLayout(FlowLayout.CENTER, 0, 0));
    panel.setBorder(JBUI.Borders.empty());
    panel.add(myEnableLigaturesCheckbox);
    enableLigaturesHintLabel.setBorder(JBUI.Borders.emptyLeft(5));
    panel.add(enableLigaturesHintLabel);
    c.gridx = 0;
    c.gridy ++;
    c.gridwidth = 2;
    c.insets = getInsets(ADDITIONAL_VERTICAL_GAP, 0);
    c.insets.bottom = BASE_INSET;
    fontPanel.add(panel, c);

    c.gridx = 0;
    c.gridy ++;
    fontPanel.add(createReaderModeComment(), c);

    return fontPanel;
  }
protected final JPanel createFontSettingsPanel()