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