code: protected int setPaintAlpha(Paint paint, int alpha) {
          final int prevAlpha = paint.getAlpha();
          paint.setAlpha(Ui.modulateAlpha(prevAlpha, alpha));
          return prevAlpha;
      }
docs: Set the draw paint alpha by modulateAlpha
  
  @param paint Paint
  @param alpha Alpha
  @return PrevAlpha