code: public static void setAlpha(final Actor actor, final float alpha) {
          if (actor != null) {
              actor.getColor().a = alpha;
          }
      }
docs: Null-safe alpha setting method.
  
  @param actor its {@link Color}'s alpha will be modified. Can be null.
  @param alpha will become actor's alpha.