void () { final var scheme = EditorColorsManager.getInstance().getGlobalScheme(); myComponentsWithEditorBackground.forEach(component -> { component.setBackground(scheme.getDefaultBackground()); }); final var borderTopBottom = JBUI.Borders.customLine(JBUI.CurrentTheme.Editor.BORDER_COLOR, 1, 0, 1, 0); if (myEditConfigOnly) { final var borderTopOnly = JBUI.Borders.customLine(JBUI.CurrentTheme.Editor.BORDER_COLOR, 1, 0, 0, 0); if (mySearchWrapper != null) mySearchWrapper.setBorder(myReplace ? borderTopBottom : borderTopOnly); if (myReplaceWrapper != null) myReplaceWrapper.setBorder(borderTopOnly); } else { if (mySearchWrapper != null) mySearchWrapper.setBorder(borderTopBottom); if (myReplaceWrapper != null) myReplaceWrapper.setBorder(borderTopBottom); } myExistingTemplatesComponent.updateColors(); }