boolean (@NotNull PsiMethodCallExpression methodCall, @NotNull PsiResolveHelper resolveHelper, @NotNull PsiExpressionList list, @NotNull PsiReferenceExpression referenceToMethod) { boolean isDummy = false; boolean isThisOrSuper = referenceToMethod.getReferenceNameElement() instanceof PsiKeyword; if (isThisOrSuper) { // super(..) or this(..) if (list.isEmpty()) { // implicit ctr call CandidateInfo[] candidates = resolveHelper.getReferencedMethodCandidates(methodCall, true); if (candidates.length == 1 && !candidates[0].getElement().isPhysical()) { isDummy = true;// dummy constructor } } } return isDummy; }