Color (Color c) { if (isMacOverlayScrollbar()) { int alpha = (int)((120 + myMouseOverScrollbarExpandLevel * 20) * (1 - myMacScrollbarFadeLevel)); //noinspection UseJBColor return new Color(c.getRed(), c.getGreen(), c.getBlue(), alpha); } else { if (myThumbFadeColorShift == 0) return c; final int sign = isDark() ? -1 : 1; return Gray.get(Math.max(0, Math.min(255, c.getRed() - sign * myThumbFadeColorShift))); } }