Color (int gray, Color color) { //noinspection UseJBColor return color == null ? null : new Color( toLineMarkerColor(gray, color.getRed()), toLineMarkerColor(gray, color.getGreen()), toLineMarkerColor(gray, color.getBlue())); }