Color (@NotNull Color color, int howMuch, float hackValue) { if (color.getRed() == color.getBlue() && color.getBlue() == color.getGreen()) { return color.getGreen() <= 64 ? shiftHSBComponent(color, 2, howMuch * (1 - hackValue) / 1.5f) : color.getGreen() >= 192 ? shiftHSBComponent(color, 2, howMuch * (hackValue - 1) / 1.5f) : color; } return tuneHSBComponent(color, 1, howMuch, hackValue); }