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