List<ParameterClassMember> (@NotNull PsiMethod method, List<@NotNull ParameterClassMember> members) { Set<PsiElement> resolvedInSuperOrThis = new HashSet<>(); PsiCodeBlock body = method.getBody(); LOG.assertTrue(body != null); PsiStatement[] statements = body.getStatements(); if (statements.length > 0 && statements[0] instanceof PsiExpressionStatement statement && statement.getExpression() instanceof PsiMethodCallExpression call) { PsiMethod calledMethod = call.resolveMethod(); if (calledMethod != null && calledMethod.isConstructor()) { for (PsiExpression arg : call.getArgumentList().getExpressions()) { if (arg instanceof PsiReferenceExpression ref) { ContainerUtil.addIfNotNull(resolvedInSuperOrThis, ref.resolve()); } } } } return ContainerUtil.findAll(members, member -> !resolvedInSuperOrThis.contains(member.getParameter())); }