void (@NotNull ModifiableFontPreferences preferences, @NotNull Element element, boolean isDefaultScheme, @Nullable Float fontScale, boolean clearFonts) { if (clearFonts) preferences.clearFonts(); List<Element> children = element.getChildren(OPTION_ELEMENT); String fontFamily = null; float size = -1; for (Element e : children) { if (EDITOR_FONT_NAME.equals(e.getAttributeValue(NAME_ATTR))) { fontFamily = myValueReader.read(String.class, e); } else if (EDITOR_FONT_SIZE.equals(e.getAttributeValue(NAME_ATTR))) { size = readFontSize(e, isDefaultScheme, fontScale); } } if (fontFamily != null && size > 1) { preferences.register(fontFamily, size); } else if (fontFamily != null) { preferences.addFontFamily(fontFamily); } }