private static @NotNull @NlsContexts.PopupAdvertisement String getHint(AnAction action) {
    return (action != null && StringUtil.isNotEmpty(action.getTemplatePresentation().getDescription())) ?
           action.getTemplatePresentation().getDescription() : "";
  }
private static @NotNull @NlsContexts.PopupAdvertisement String getHint(AnAction action)