void (final @NotNull PsiElement psiElement, final @NotNull Project project) { if (psiElement.isValid()) { PsiElementRenameHandler.invoke(psiElement, project, psiElement.getContainingFile(), null); } }