void (@Nullable Template template, @NotNull XmlTag tagProperty) { if (template == null) return; Editor editor = CodeInsightUtil.positionCursor(project, tagProperty.getContainingFile(), tagProperty); if (editor == null) return; template.setToReformat(true); TemplateManager.getInstance(project).startTemplate(editor, template, new TemplateFinishedEditing()); }