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