void (@NotNull PresentationData presentation, @NlsSafe String name, @Nullable @NlsContexts.Tooltip String tooltip, SimpleTextAttributes attributes) { presentation.clearText(); presentation.addText(name, prepareAttributes(attributes)); getTemplatePresentation().setTooltip(tooltip); }