boolean (@Nullable PsiMethod constructor) { if (constructor == null || !constructor.isConstructor()) { return false; } final PsiParameter[] parameters = constructor.getParameterList().getParameters(); return parameters.length == 1 && constructor.getContainingClass() == PsiUtil.resolveClassInClassTypeOnly(parameters[0].getType()); }