UCallExpression (@NotNull PsiElement element) { UCallExpression callExpression = UastContextKt.toUElement(element, UCallExpression.class); if (callExpression == null) { return null; } // workaround for duplicate warnings on the same element if (callExpression.getSourcePsi() != element) { return null; } return callExpression; }