UsagePresentation () { final UsagePresentation presentation = super.getPresentation(); return new UsagePresentation() { @Override public TextChunk @NotNull [] getText() { return new TextChunk[]{ new TextChunk(new TextAttributes(JBColor.RED, null, null, EffectType.WAVE_UNDERSCORE, Font.PLAIN), getTooltipText()) }; } @Override @NotNull public String getPlainText() { return presentation.getPlainText(); } @Override public Icon getIcon() { return presentation.getIcon(); } @NlsContexts.Tooltip @Override public String getTooltipText() { return LangBundle.message("tooltip.too.complex.to.analyze.analysis.stopped.here"); } }; }