UsagePresentation () { return new UsagePresentation() { @Override public TextChunk @NotNull [] getText() { return new TextChunk[] {new TextChunk(SimpleTextAttributes.REGULAR_ATTRIBUTES.toTextAttributes(), myExplanationText)}; } @NotNull @Override public String getPlainText() { return myExplanationText; } @Override public Icon getIcon() { return AllIcons.General.Warning; } @Override public String getTooltipText() { return null; } }; }