void (@NotNull PropertiesComponent p, @NotNull UISettings uiSettings, @NotNull ToolbarSettings toolbarSettings, @NotNull EditorSettingsExternalizable.OptionSet eo, @NotNull DaemonCodeAnalyzerSettings ds, String before, String after, boolean value) { var ui = uiSettings.getState(); // @formatter:off p.setValue(before + "SHOW_STATUS_BAR", String.valueOf(ui.getShowStatusBar())); ui.setShowStatusBar(p.getBoolean(after + "SHOW_STATUS_BAR", value)); p.setValue(before + "SHOW_MAIN_TOOLBAR", String.valueOf(uiSettings.getShowMainToolbar())); uiSettings.setShowMainToolbar(p.getBoolean(after + "SHOW_MAIN_TOOLBAR", value)); p.setValue(before + "SHOW_NAVIGATION_BAR", String.valueOf(uiSettings.getShowNavigationBar())); uiSettings.setShowNavigationBar(p.getBoolean(after + "SHOW_NAVIGATION_BAR", value)); p.setValue(before + "SHOW_NEW_MAIN_TOOLBAR", String.valueOf(toolbarSettings.isVisible())); toolbarSettings.setVisible(p.getBoolean(after + "SHOW_NEW_MAIN_TOOLBAR", value)); p.setValue(before + "IS_FOLDING_OUTLINE_SHOWN", String.valueOf(eo.IS_FOLDING_OUTLINE_SHOWN)); eo.IS_FOLDING_OUTLINE_SHOWN = p.getBoolean(after + "IS_FOLDING_OUTLINE_SHOWN", value); p.setValue(before + "IS_FOLDING_OUTLINE_SHOWN_ONLY_ON_HOVER", String.valueOf(eo.IS_FOLDING_OUTLINE_SHOWN_ONLY_ON_HOVER)); eo.IS_FOLDING_OUTLINE_SHOWN_ONLY_ON_HOVER = p.getBoolean(after + "IS_FOLDING_OUTLINE_SHOWN_ONLY_ON_HOVER", value); p.setValue(before + "IS_WHITESPACES_SHOWN", String.valueOf(eo.IS_WHITESPACES_SHOWN)); eo.IS_WHITESPACES_SHOWN = p.getBoolean(after + "IS_WHITESPACES_SHOWN", value); p.setValue(before + "ARE_LINE_NUMBERS_SHOWN", String.valueOf(eo.ARE_LINE_NUMBERS_SHOWN)); eo.ARE_LINE_NUMBERS_SHOWN = p.getBoolean(after + "ARE_LINE_NUMBERS_SHOWN", value); p.setValue(before + "ARE_GUTTER_ICONS_SHOWN", String.valueOf(eo.ARE_GUTTER_ICONS_SHOWN)); eo.ARE_GUTTER_ICONS_SHOWN = p.getBoolean(after + "ARE_GUTTER_ICONS_SHOWN", value); p.setValue(before + "IS_RIGHT_MARGIN_SHOWN", String.valueOf(eo.IS_RIGHT_MARGIN_SHOWN)); eo.IS_RIGHT_MARGIN_SHOWN = p.getBoolean(after + "IS_RIGHT_MARGIN_SHOWN", value); p.setValue(before + "IS_INDENT_GUIDES_SHOWN", String.valueOf(eo.IS_INDENT_GUIDES_SHOWN)); eo.IS_INDENT_GUIDES_SHOWN = p.getBoolean(after + "IS_INDENT_GUIDES_SHOWN", value); p.setValue(before + "SHOW_BREADCRUMBS", String.valueOf(eo.SHOW_BREADCRUMBS)); eo.SHOW_BREADCRUMBS = p.getBoolean(after + "SHOW_BREADCRUMBS", value); p.setValue(before + "SHOW_METHOD_SEPARATORS", String.valueOf(ds.SHOW_METHOD_SEPARATORS)); ds.SHOW_METHOD_SEPARATORS = p.getBoolean(after + "SHOW_METHOD_SEPARATORS", value); p.setValue(before + "HIDE_TOOL_STRIPES", String.valueOf(ui.getHideToolStripes())); ui.setHideToolStripes(p.getBoolean(after + "HIDE_TOOL_STRIPES", !value)); p.setValue(before + "EDITOR_TAB_PLACEMENT", String.valueOf(ui.getEditorTabPlacement())); ui.setEditorTabPlacement(p.getInt(after + "EDITOR_TAB_PLACEMENT", value ? SwingConstants.TOP : UISettings.TABS_NONE)); // @formatter:on }