PsiMethodCallExpression (@NotNull PsiMethod constructor) { if (!constructor.isConstructor()) return null; PsiCodeBlock body = constructor.getBody(); if (body == null) return null; PsiElement bodyElement = body.getFirstBodyElement(); while (bodyElement != null && !(bodyElement instanceof PsiStatement)) { bodyElement = bodyElement.getNextSibling(); } if (!(bodyElement instanceof PsiExpressionStatement)) return null; PsiMethodCallExpression call = ObjectUtils.tryCast(((PsiExpressionStatement)bodyElement).getExpression(), PsiMethodCallExpression.class); if (isConstructorCall(call)) return call; return null; }