void (XmlAttributeValue fxIdValueElement, String newName, boolean searchInComments, boolean previewUsages) { final RenameRefactoring rename = new JavaRenameRefactoringImpl(fxIdValueElement.getProject(), fxIdValueElement, newName, searchInComments, false); rename.setPreviewUsages(previewUsages); final PsiField nestedControllerField = getNestedControllerField(fxIdValueElement); if (nestedControllerField != null) { rename.addElement(nestedControllerField, newName + FxmlConstants.CONTROLLER_SUFFIX); } rename.run(); }