code: public void setForegroundIconColorAnimated(final Color color, final int cycleCount) {
          assert color != null;
          stopForegroundIconColorFadeAnimation();
          foregroundFadeIcon.setFill(color);
          foregroundColorFadeAnimation = Animations.createFadeTransition(foregroundFadeIcon, JFXConstants.TRANSPARENCY_FULLY, JFXConstants.TRANSPARENCY_NONE, Animation.INDEFINITE, JFXConstants.ANIMATION_DURATION_FADE_DEFAULT);
          foregroundColorFadeAnimation.setOnFinished(event -> {
              foregroundFadeIcon.setFill(color);
              foregroundFadeIcon.setOpacity(JFXConstants.TRANSPARENCY_FULLY);
          });
          foregroundColorFadeAnimation.play();
      }
docs: Allows to set a new color to the foregroundIcon icon and setAnimation its change (by a FadeTransition).
  
  @param color      the color for the foregroundIcon icon to be set
  @param cycleCount the number of times the animation should be played (use Animation.INDEFINITE for endless)