void () { final String newName = getNewName(); final PsiElement element = getPsiElement(); assert element instanceof XmlAttributeValue; doRenameFxId(((XmlAttributeValue)element), newName, isSearchInComments(), isPreviewUsages()); close(DialogWrapper.OK_EXIT_CODE); }