void () { if (myIsInSchemeChange) { return; } FontPreferences fontPreferences = getFontPreferences(); if (fontPreferences instanceof ModifiableFontPreferences modifiableFontPreferences) { modifiableFontPreferences.clearFonts(); modifiableFontPreferences.setUseLigatures(myEnableLigaturesCheckbox.isSelected()); String primaryFontFamily = myPrimaryCombo.getFontName(); String secondaryFontFamily = mySecondaryCombo.isNoFontSelected() ? null : mySecondaryCombo.getFontName(); float fontSize = getFontSizeFromField(); if (primaryFontFamily != null) { if (!FontPreferences.DEFAULT_FONT_NAME.equals(primaryFontFamily)) { modifiableFontPreferences.addFontFamily(primaryFontFamily); } modifiableFontPreferences.register(primaryFontFamily, fontSize); } if (secondaryFontFamily != null) { if (!FontPreferences.DEFAULT_FONT_NAME.equals(secondaryFontFamily)) { modifiableFontPreferences.addFontFamily(secondaryFontFamily); } modifiableFontPreferences.register(secondaryFontFamily, fontSize); } updateDescription(true); } }