void (@NotNull Element root) { List<Element> fontOptions = new ArrayList<>(root.getChildren("option")); for (Element option : fontOptions) { String name = option.getAttributeValue("name"); if (name != null) { if ("FONT_SCALE".equals(name) || "EDITOR_FONT_SIZE".equals(name) || "EDITOR_FONT_NAME".equals(name)) { root.removeContent(option); } else if ("CONSOLE_FONT_NAME".equals(name)) { option.setAttribute("value", "Test"); } } } }