void (JSeparator s) { Color bg = s.getForeground(); if (bg == null || bg instanceof UIResource) { s.setForeground(JBColor.namedColor(getColorResourceName(), new JBColor(Gray.xCD, Gray.x51))); } LookAndFeel.installProperty(s, "opaque", Boolean.FALSE); }