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