@Nullable @Override public NonCodeUsageSearchInfo findUsages(@NotNull PsiElement element,@NotNull PsiElement[] allElementsToDelete,@NotNull List<UsageInfo> result){
  NonCodeUsageSearchInfo superResult=super.findUsages(element,allElementsToDelete,result);
  Iterator<UsageInfo> iter=result.iterator();
  while (iter.hasNext()) {
    if (ignoreUsage(iter.next())) {
      iter.remove();
    }
  }
  return superResult;
}

@ Nullable @ Override public NonCodeUsageSearchInfo findUsages ( @ NotNull PsiElement element , @ NotNull PsiElement [ ] allElementsToDelete , @ NotNull List < UsageInfo > result ) { NonCodeUsageSearchInfo superResult = super . findUsages ( element , allElementsToDelete , result ) ; Iterator < UsageInfo > iter = result . iterator ( ) ; while ( iter . hasNext ( ) ) { if ( ignoreUsage ( iter . next ( ) ) ) { iter . remove ( ) ; } } return superResult ; }
delegates to javasafedeleteprocessor , then removes indirect glob references which we don ' t want to block safe delete .
