boolean (@NotNull PsiMethod candidate) { if (!isConstructor()) { return !candidate.isConstructor() && candidate.getName().equals(getName(ResolveState.initial())); } else { if (!candidate.isConstructor()) return false; if (myAccessClass == null) return true; if (myAccessClass instanceof PsiAnonymousClass) { final PsiClass containingClass = getContainingClass(candidate); return containingClass != null && containingClass.equals(myAccessClass.getSuperClass()); } return myAccessClass.isEquivalentTo(getContainingClass(candidate)); } }