public PsiReference[] markRootUsages(PsiElement element, PsiType migrationType) {
    return markRootUsages(element, migrationType,
                          ReferencesSearch.search(element, myRules.getSearchScope(), false).toArray(PsiReference.EMPTY_ARRAY));
  }
public PsiReference[] markRootUsages(PsiElement element, PsiType migrationType)