void (@NotNull @NlsSafe String text, @NotNull SimpleTextAttributes attributes) { if (myPresentation.getColoredText().isEmpty() && myPresentation.getPresentableText() != null) { // Convert plain text into colored text before appending comments. // Keep the plain text (it's used for sorting nodes, for example). myPresentation.addText(myPresentation.getPresentableText(), SimpleTextAttributes.REGULAR_ATTRIBUTES); } myPresentation.addText(text, attributes); }