RenameDialog (@NotNull Project project, @NotNull PsiElement element, PsiElement nameSuggestionContext, Editor editor) { return new RenameDialog(project, element, nameSuggestionContext, editor) { @Override protected boolean areButtonsValid() { return true; } }; }