void (Project project, SmartPsiElementPointer<? extends XmlTag> pointer) { PsiDocumentManager manager = PsiDocumentManager.getInstance(project); PsiFile file = pointer.getContainingFile(); assert file != null; Document document = file.getViewProvider().getDocument(); assert document != null; manager.commitDocument(document); XmlTag tag = pointer.getElement(); assert tag != null; XmlUtil.reformatTagStart(tag); }