public static void paintSeparator(Component c, Graphics g,
SubstanceColorScheme scheme, int width, int height,
int orientation, boolean hasShadow, int maxGradLengthStart,
int maxGradLengthEnd, boolean toEnforceAlphaColors) {
DecorationAreaType decorationAreaType = SubstanceLookAndFeel
.getDecorationType(c);
SubstanceSkin skin = SubstanceCoreUtilities.getSkin(c);
// use alpha colors when the control is in a painted decoration area
// (where skin can use different background colors) or in a decoration
// area that has overlays.