void (PsiElement elementToRename, Editor editor, @NotNull DataContext dataContext, String initialName) { try { ourPreventInlineRenameFlag.set(initialName == null ? "" : initialName); RenameHandler handler = RenameHandlerRegistry.getInstance().getRenameHandler(dataContext); assert handler != null : elementToRename.getClass().getName() + ":" + elementToRename; handler.invoke( elementToRename.getProject(), editor, elementToRename.getContainingFile(), dataContext ); } finally { ourPreventInlineRenameFlag.set(null); } }