private boolean isStaticProblem(@NotNull PsiElement element) {
    if (myStaticScopeFlag == StaticScope.NON_STATIC || ((PsiModifierListOwner)element).hasModifierProperty(PsiModifier.STATIC)) {
      return false;
    }
    if (element instanceof PsiField) return true;
    return !(myStaticScopeFlag == StaticScope.STATIC && element instanceof PsiVariable &&
             PsiUtil.isCompileTimeConstant((PsiVariable)element));
  }
private boolean isStaticProblem(@NotNull PsiElement element)