UCallExpression (UClass languageClass) { UMethod defaultConstructor = ContainerUtil.find(languageClass.getMethods(), method -> method.isConstructor() && method.getUastParameters().isEmpty()); if (defaultConstructor == null) { return null; } final UExpression body = defaultConstructor.getUastBody(); if (!(body instanceof UBlockExpression)) { return null; } final List<UExpression> expressions = ((UBlockExpression)body).getExpressions(); // super() must be first UExpression expression = ContainerUtil.getFirstItem(expressions); return ObjectUtils.tryCast(expression, UCallExpression.class); }