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