boolean (PsiElement element) { if (super.bindsCorrectly(element)) return true; if (element instanceof PsiClass) { final PsiElement resolved = resolve(); if (resolved instanceof PsiMethod method) { if (method.isConstructor() && getManager().areElementsEquivalent(element, method.getContainingClass())) { return true; } } } return false; }