boolean (@NotNull Object object) { if (!(object instanceof PsiMember)) return false; if (LanguageLevelUtil.getLastIncompatibleLanguageLevel((PsiMember)object, myLanguageLevel) != null) { return true; } if (object instanceof PsiEnumConstant) { return myConstantsUsedInSwitch.contains(CompletionUtil.getOriginalOrSelf((PsiEnumConstant)object)); } return object instanceof PsiClass && ReferenceListWeigher.INSTANCE.getApplicability((PsiClass)object, myPlace) == inapplicable; }