@Nullable
  private static @NlsContexts.PopupAdvertisement String getAdvertisementText(final PsiDeclarationStatement declaration,
                                                                             final PsiType type,
                                                                             final boolean hasTypeSuggestion) {
    final VariablesProcessor processor = ReassignVariableUtil.findVariablesOfType(declaration, type);
    if (processor.size() > 0) {
      final Shortcut shortcut = KeymapUtil.getPrimaryShortcut("IntroduceVariable");
      if (shortcut != null) {
        return JavaBundle.message("introduce.variable.reassign.adv", KeymapUtil.getShortcutText(shortcut));
      }
    }
    if (hasTypeSuggestion) {
      final Shortcut shortcut = KeymapUtil.getPrimaryShortcut("PreviousTemplateVariable");
      if (shortcut != null) {
        return JavaBundle.message("introduce.variable.change.type.adv", KeymapUtil.getShortcutText(shortcut));
      }
    }
    return null;
  }
@Nullable
  private static @NlsContexts.PopupAdvertisement String getAdvertisementText(final PsiDeclarationStatement declaration,
                                                                             final PsiType type,
                                                                             final boolean hasTypeSuggestion)