boolean (@NotNull final PsiElement candidate, @NotNull final ResolveState state) { if (candidate instanceof PsiMember && ((PsiModifierListOwner)candidate).hasModifierProperty(PsiModifier.STATIC)) { if (candidate instanceof PsiField) { if (checkDomination((PsiMember)candidate, myFieldResults)) return true; myFieldResults.add(new OurResolveResult(candidate, myReference)); } else if (candidate instanceof PsiClass) { if (checkDomination((PsiMember)candidate, myClassResult)) return true; myClassResult.add(new OurResolveResult(candidate, myReference)); } else { myResults.add(new OurResolveResult(candidate, myReference)); } } return true; }