EffectPainter (EffectType type) { if (type == EffectType.STRIKEOUT) return EffectPainter.STRIKE_THROUGH; if (type == EffectType.WAVE_UNDERSCORE) return EffectPainter.WAVE_UNDERSCORE; if (type == EffectType.LINE_UNDERSCORE) return EffectPainter.LINE_UNDERSCORE; if (type == EffectType.BOLD_LINE_UNDERSCORE) return EffectPainter.BOLD_LINE_UNDERSCORE; if (type == EffectType.BOLD_DOTTED_LINE) return EffectPainter.BOLD_DOTTED_UNDERSCORE; return null; }