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