@Override
 public void visitReferenceElement(PsiJavaCodeReferenceElement reference) {
   super.visitReferenceElement(reference);
   final PsiElement element = reference.resolve();
   if (element != null) {
     myResult.add(element);
   }
 }
 @Override
 public void visitElement(PsiElement element) {
   if (conflict != null) return;
   super.visitElement(element);
 }