@Override
  public void visitReferenceElement(@NotNull PsiJavaCodeReferenceElement reference) {
    super.visitReferenceElement(reference);
    final PsiClass aClass = ObjectUtils.tryCast(reference.resolve(), PsiClass.class);
    if (aClass != null && !aClass.hasModifierProperty(PsiModifier.STATIC) && aClass.getScope() instanceof PsiClass) {
      m_referencesStaticallyAccessible = false;
    }
  }
@Override
  public void visitReferenceElement(@NotNull PsiJavaCodeReferenceElement reference)