void (XmlAttribute attribute, String newName, @Nullable RefactoringElementListener listener) { try { final PsiElement element = attribute.setName(newName); if (listener != null) { listener.elementRenamed(element); } } catch (IncorrectOperationException e) { LOG.error(e); } }