void (final @Nullable Editor editor, final @NotNull PsiElement element, final @Nullable DataContext context) { if (!isRenaming(context)) { return; } if (isInplaceRenameAvailable(editor)) { XmlTagInplaceRenamer.rename(editor, (XmlTag)element.getParent()); } else { XmlTagRenameDialog.renameXmlTag(editor, element, (XmlTag)element.getParent()); } }