@Override
        protected boolean check(PsiVariable var, ResolveState state) {
          return isDeclaredInside(var);
        }
@Override
        protected boolean check(PsiVariable var, ResolveState state)