boolean () { for (PsiElement element : new ArrayList<>(myAllRenames.keySet())) { String newName = myAllRenames.get(element); if (RenameUtil.hasNonCodeUsages(element, newName, myRefactoringScope, mySearchInComments, mySearchTextOccurrences)) return true; } return false; }