void (@NotNull final AnActionEvent e) { final PsiFile file = e.getData(CommonDataKeys.PSI_FILE); assert file != null; final VirtualFile virtualFile = file.getVirtualFile(); assert virtualFile != null; final Project project = e.getData(CommonDataKeys.PROJECT); assert project != null; PsiElementRenameHandler.invoke(file, project, file, null); }