boolean (@NotNull PsiElement pe, @NotNull ResolveState state) { if(pe instanceof PsiVariable){ final PsiVariable pvar = (PsiVariable)pe; if(!myStaticSensitiveFlag || !myStaticScopeFlag || pvar.hasModifierProperty(PsiModifier.STATIC)){ if(check(pvar, state)){ myResultList.add(pvar); } } } return true; }