protected void performOnInvalidIdentifier(final String newName, final LinkedHashSet<String> nameSuggestions) {
    if (ApplicationManager.getApplication().isUnitTestMode()) {
      tryRollback();
      return;
    }
    JBPopupFactory.getInstance()
      .createConfirmation(LangBundle.message("popup.title.inserted.identifier.valid"), IdeBundle.message("label.continue.editing"),
                          CommonBundle.getCancelButtonText(),
                          () -> {
                            startDumbIfPossible();
                            try {
                              tryRollback();
                              final PsiNamedElement variable = getVariable();
                              if (variable != null) {
                                createInplaceRenamerToRestart(variable, myEditor, newName).performInplaceRefactoring(nameSuggestions);
                              }
                            }
                            finally {
                              stopDumbLaterIfPossible();
                            }
                          },
                          () -> tryRollback(), 0).showInBestPositionFor(myEditor);
  }
protected void performOnInvalidIdentifier(final String newName, final LinkedHashSet<String> nameSuggestions)