boolean (ColorKey key) { ColorKey fallbackKey = key.getFallbackColorKey(); if (fallbackKey != null) { if (parentScheme instanceof AbstractColorsScheme) { Color ownAttrs = ((AbstractColorsScheme)parentScheme).getDirectlyDefinedColor(key); if (ownAttrs != null) { return ownAttrs == AbstractColorsScheme.INHERITED_COLOR_MARKER; } } Color attributes = getColor(key); if (attributes != null) { Color fallback = getColor(fallbackKey); return attributes == fallback; } } return false; }