private float paintLineLayoutWithEffect(LineLayout layout, float x, float y, @Nullable Color color,
                                            @Nullable Color effectColor, @Nullable EffectType effectType) {
      paintTextEffect(x, x + layout.getWidth(), (int)y, effectColor, effectType, false);
      myGraphics.setColor(color);
      for (LineLayout.VisualFragment fragment : layout.getFragmentsInVisualOrder(x)) {
        fragment.draw(myGraphics, fragment.getStartX(), y);
        x = fragment.getEndX();
      }
      return x;
    }
private float paintLineLayoutWithEffect(LineLayout layout, float x, float y, @Nullable Color color,
                                            @Nullable Color effectColor, @Nullable EffectType effectType)