if (wodModel != null) {
IWodUnit wodUnit = wodModel.getWodUnitAtIndex(offset);
if (wodUnit != null && wodUnit instanceof IWodElement) {
IWodElement wodElement = (IWodElement) wodUnit;
Position elementNamePosition = wodElement.getElementNamePosition();
if (elementNamePosition != null && elementNamePosition.includes(offset)) {
String elementName = wodElement.getElementName();
if (elementName != null) {
QuickRenameRefactoring.renameElement(elementName, htmlViewer, wodViewer, cache, false);
}
}