@Override
public PsiElement handleElementRename(@NotNull String newElementName) throws IncorrectOperationException {
TextRange fileNameTextRange = findFileNameTextRagne();
YAMLKeyValue oldKeyValue = myYamlKeyValueFragment.getElement();
String newKeyValueText = fileNameTextRange.replace(oldKeyValue.getText(), newElementName);
YAMLKeyValue newKeyValue = createTempKeyValue(newKeyValueText);
if (newKeyValue != null) {
return oldKeyValue.replace(newKeyValue);
}
return null;