protected void changeAttributeValue(PsiElement e, Editor editor) {
    final XmlAttribute attr = PsiTreeUtil.getParentOfType(e, XmlAttribute.class, false);
    if (attr == null) return;

    attr.setValue(myNewAttributeValue);

    XmlAttributeValue valueElement = attr.getValueElement();
    if (editor != null && valueElement != null) {
      editor.getCaretModel().moveToOffset(valueElement.getValueTextRange().getStartOffset());
    }
  }
protected void changeAttributeValue(PsiElement e, Editor editor)