void () { final String newName = getNewName(); final boolean searchInComments = isSearchInComments(); doRename(myProperty, newName, myEditor, searchInComments, isPreviewUsages()); close(DialogWrapper.OK_EXIT_CODE); }