boolean (@NotNull PsiCodeBlock constructorBody) { final PsiStatement[] statements = constructorBody.getStatements(); if (statements.length == 0) return false; if (!(statements[0] instanceof PsiExpressionStatement)) return false; final PsiExpression expression = ((PsiExpressionStatement)statements[0]).getExpression(); if (!(expression instanceof PsiMethodCallExpression)) return false; final PsiMethod method = (PsiMethod)((PsiMethodCallExpression)expression).getMethodExpression().resolve(); return method != null && method.isConstructor(); }